You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-29 21:24:44 +03:00
Handle error on top page
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
@@ -156,7 +156,11 @@ function PMA_sanitizeUrl($url)
|
||||
|
||||
// get script name
|
||||
preg_match("<([a-zA-Z\-_\d]*\.php)$>", $components["path"], $matches);
|
||||
$script_name = $matches[1];
|
||||
if (count($matches)) < 2) {
|
||||
$script_name = 'index.php';
|
||||
} else {
|
||||
$script_name = $matches[1];
|
||||
}
|
||||
|
||||
// remove deployment specific details to make uri more generic
|
||||
parse_str($components["query"], $query_array);
|
||||
|
||||
Reference in New Issue
Block a user