diff options
author | Michal Čihař <mcihar@novell.com> | 2011-01-31 17:10:07 +0300 |
---|---|---|
committer | Michal Čihař <mcihar@novell.com> | 2011-01-31 17:22:25 +0300 |
commit | 14ebfdbe8e191fc5adb255a4ef7c6ae87f8b5e12 (patch) | |
tree | 1e6af2a95fa236bc4b0a265dcde1f0283ab5159a /url.php | |
parent | 82d6f8bfd827d58b043a3b7da85b1f82b544d91a (diff) |
No need for authentication on url.php (bug#3168011).
Diffstat (limited to 'url.php')
-rw-r--r-- | url.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,14 +3,14 @@ * URL redirector to avoid leaking Referer with some sensitive information. */ +define('PMA_MINIMUM_COMMON', TRUE); + /** * Gets core libraries and defines some variables */ require_once './libraries/common.inc.php'; -PMA_checkParameters(array('url')); - -if (! preg_match('/^https?:\/\/[^\n\r]*$/', $GLOBALS['url'])) { +if (empty($GLOBALS['url']) || ! preg_match('/^https?:\/\/[^\n\r]*$/', $GLOBALS['url'])) { header('Location: ' . $cfg['PmaAbsoluteUri']); } else { header('Location: ' . $GLOBALS['url']); |