Avoid using REQUEST_URI for redirection

* Stick with PMA_sendHeaderLocation to handle server weirdness
* Use already calculated URL

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-12-08 10:59:53 +01:00
parent 9d712359d0
commit e37bf40f44

View File

@ -112,7 +112,10 @@ class PageSettings
$result = PMA_saveUserprefs($cf->getConfigArray());
if ($result === true) {
// reload page
header('Location: ' . $_SERVER['REQUEST_URI']);
$response = Response::getInstance();
PMA_sendHeaderLocation(
$response->getFooter()->getSelfUrl('unencoded')
)
exit();
} else {
$error = $result;