escape allowed parameters from non-token requests
This commit is contained in:
@@ -7,6 +7,8 @@ $Source$
|
||||
|
||||
2006-06-28 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/Config.class.php: remove debug code
|
||||
* libraries/common.lib.php: escape allowed parameters from non-token
|
||||
requests
|
||||
|
||||
2006-06-27 Michal Čihař <michal@cihar.com>
|
||||
* libraries/import/csv.php: Fix special case of Excel export with ; at the
|
||||
|
@@ -2808,6 +2808,9 @@ if (!isset($_REQUEST['token']) || $_SESSION['PMA_token'] != $_REQUEST['token'])
|
||||
unset($_GET[$key]);
|
||||
unset($_POST[$key]);
|
||||
unset($GLOBALS[$key]);
|
||||
} else {
|
||||
// allowed stuff could be compromised so escape it
|
||||
$_REQUEST[$key] = htmlspecialchars($_REQUEST[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user