From 14ebfdbe8e191fc5adb255a4ef7c6ae87f8b5e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 31 Jan 2011 15:10:07 +0100 Subject: [PATCH] No need for authentication on url.php (bug#3168011). --- url.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/url.php b/url.php index a9d0f5882..ec0ab39a0 100644 --- a/url.php +++ b/url.php @@ -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']);