No need for authentication on url.php (bug#3168011).

This commit is contained in:
Michal Čihař
2011-01-31 15:10:07 +01:00
parent 82d6f8bfd8
commit 14ebfdbe8e

View File

@@ -3,14 +3,14 @@
* URL redirector to avoid leaking Referer with some sensitive information. * URL redirector to avoid leaking Referer with some sensitive information.
*/ */
define('PMA_MINIMUM_COMMON', TRUE);
/** /**
* Gets core libraries and defines some variables * Gets core libraries and defines some variables
*/ */
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
PMA_checkParameters(array('url')); if (empty($GLOBALS['url']) || ! preg_match('/^https?:\/\/[^\n\r]*$/', $GLOBALS['url'])) {
if (! preg_match('/^https?:\/\/[^\n\r]*$/', $GLOBALS['url'])) {
header('Location: ' . $cfg['PmaAbsoluteUri']); header('Location: ' . $cfg['PmaAbsoluteUri']);
} else { } else {
header('Location: ' . $GLOBALS['url']); header('Location: ' . $GLOBALS['url']);