Merge branch 'QA_4_6'

This commit is contained in:
Michal Čihař 2016-06-15 11:43:18 +02:00
commit a6af9fb407

View File

@ -489,6 +489,14 @@ function PMA_sendHeaderLocation($uri, $use_refresh = false)
return;
}
/*
* Avoid relative path redirect problems in case user entered URL
* like /phpmyadmin/index.php/ which some web servers happily accept.
*/
if ($uri[0] == '.') {
$uri = $GLOBALS['PMA_Config']->getCookiePath() . substr($uri, 2);
}
$response = PMA\libraries\Response::getInstance();
if (SID) {