Fix path disclossure while passing array as some params.

This commit is contained in:
Michal Čihař
2006-11-17 09:32:19 +00:00
parent 609eaa7f75
commit 7e5f61842c
6 changed files with 43 additions and 8 deletions

View File

@@ -88,7 +88,7 @@ if (! isset($GLOBALS['db']) || ! strlen($GLOBALS['db'])) {
$url_query = PMA_generate_common_url($_GET);
if (!empty($GLOBALS['target']) && in_array($GLOBALS['target'], $goto_whitelist)) {
if (is_string($GLOBALS['target']) && !empty($GLOBALS['target']) && in_array($GLOBALS['target'], $goto_whitelist)) {
$main_target = $GLOBALS['target'];
}