Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-11-10 22:03:48 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-11-11 01:48:59 +0300
commit01e8064e3530a05d8d2975ad29fdd519a952e0ec (patch)
tree2ff41df5477343946c252294da6aa7ff6840a003 /url.php
parent79fd80cef5da7f67eed01825b4d4b957d03acffd (diff)
Retrieve parameters from $_GET in url.php
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'url.php')
-rw-r--r--url.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/url.php b/url.php
index c56ed1f655..edaab5acba 100644
--- a/url.php
+++ b/url.php
@@ -21,9 +21,9 @@ $response = Response::getInstance();
$response->getHeader()->sendHttpHeaders();
$response->disable();
-if (! Core::isValid($_REQUEST['url'])
- || ! preg_match('/^https:\/\/[^\n\r]*$/', $_REQUEST['url'])
- || ! Core::isAllowedDomain($_REQUEST['url'])
+if (! Core::isValid($_GET['url'])
+ || ! preg_match('/^https:\/\/[^\n\r]*$/', $_GET['url'])
+ || ! Core::isAllowedDomain($_GET['url'])
) {
Core::sendHeaderLocation('./');
} else {
@@ -33,11 +33,11 @@ if (! Core::isValid($_REQUEST['url'])
// external site.
echo "<script type='text/javascript'>
window.onload=function(){
- window.location='" , Sanitize::escapeJsString($_REQUEST['url']) , "';
+ window.location='" , Sanitize::escapeJsString($_GET['url']) , "';
}
</script>";
// Display redirecting msg on screen.
- // Do not display the value of $_REQUEST['url'] to avoid showing injected content
+ // Do not display the value of $_GET['url'] to avoid showing injected content
echo __('Taking you to the target site.');
}
die();