Skip to content

Commit

Permalink
CHANGE-348 Secunia advisory SA50574 - XSS in admin login.php
Browse files Browse the repository at this point in the history
Update admin version of zen_get_all_get_params to carry out the same sanitization of get params
as catalog version of zen_get_all_get_params
  • Loading branch information
zcwilt committed Oct 8, 2012
1 parent 74165e5 commit 3ec70bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/includes/functions/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ function zen_get_all_get_params($exclude_array = '') {

reset($_GET);
while (list($key, $value) = each($_GET)) {
if (($key != zen_session_name()) && ($key != 'error') && (!in_array($key, $exclude_array))) $get_url .= $key . '=' . $value . '&';
if (($key != zen_session_name()) && ($key != 'error') && (!in_array($key, $exclude_array)))
$get_url .= zen_sanitize_string($key) . '=' . rawurlencode(stripslashes($value)) . '&';
}

return $get_url;
Expand Down

0 comments on commit 3ec70bd

Please sign in to comment.