Skip to content

Commit

Permalink
Fix for a cross site scripting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenrnl authored and jeroenr committed Jul 2, 2009
1 parent 6a20d65 commit 63aed78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion php/people.php
Expand Up @@ -118,7 +118,7 @@
}
else {
?>
<div class="error"><?php echo sprintf(translate("No people were found with a last name beginning with '%s'."), $_l) ?></div>
<div class="error"><?php echo sprintf(translate("No people were found with a last name beginning with '%s'."), htmlentities($_l)) ?></div>
<?php
}
?>
Expand Down
2 changes: 1 addition & 1 deletion php/util.inc.php
Expand Up @@ -354,7 +354,7 @@ function create_form($vars, $ignore = array()) {
$form = "";
while (list($key, $val) = each($vars)) {
if (in_array($key, $ignore)) { continue; }
$form .= "<input type=\"hidden\" name=\"$key\" value=\"$val\">\n";
$form .= "<input type=\"hidden\" name=\"$key\" value=\"" . escape_string($val) . "\">\n";
}

return $form;
Expand Down

0 comments on commit 63aed78

Please sign in to comment.