Skip to content
Snippets Groups Projects
Commit ebbef3b1 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix for possible XSS vulnerability in html_revisions()

darcs-hash:20080504163149-7ad00-807016f20298b25c1a3df2040b051c02e6ce2d91.gz
parent 0265c204
No related branches found
No related tags found
No related merge requests found
......@@ -431,9 +431,9 @@ function html_revisions($first=0){
print '<a class="wikilink1" href="'.wl($ID).'">'.$ID.'</a> ';
print ' &ndash; ';
print $INFO['sum'];
print htmlspecialchars($INFO['sum']);
print ' <span class="user">';
print (empty($INFO['editor']))?('('.$lang['external_edit'].')'):$INFO['editor'];
print (empty($INFO['editor']))?('('.$lang['external_edit'].')'):htmlspecialchars($INFO['editor']);
print '</span> ';
print '('.$lang['current'].')';
......@@ -477,7 +477,7 @@ function html_revisions($first=0){
print htmlspecialchars($info['sum']);
print ' <span class="user">';
if($info['user']){
print $info['user'];
print htmlspecialchars($info['user']);
}else{
print $info['ip'];
}
......@@ -571,7 +571,7 @@ function html_recent($first=0){
print ' <span class="user">';
if($recent['user']){
print $recent['user'];
print htmlspecialchars($recent['user']);
}else{
print $recent['ip'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment