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:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-05-07 15:23:50 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-05-07 15:23:50 +0300
commit7199825abd4a913e158fa7731ab3b9d17d7013a0 (patch)
treeb622aee51a30b7767d8b354f4253079c8dbf9a26 /url.php
parentae4e5db3761ac0bbac9586c89ce956fae0b3f01f (diff)
Long links may be converted to forms
Signed-off-by: Madhura Jayaratne <madhura.cj@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 f8646aa783..eec78a52b1 100644
--- a/url.php
+++ b/url.php
@@ -16,9 +16,9 @@ require_once './libraries/common.inc.php';
*/
require_once './libraries/js_escape.lib.php';
-if (! PMA_isValid($_GET['url'])
- || ! preg_match('/^https?:\/\/[^\n\r]*$/', $_GET['url'])
- || ! PMA_isAllowedDomain($_GET['url'])
+if (! PMA_isValid($_REQUEST['url'])
+ || ! preg_match('/^https?:\/\/[^\n\r]*$/', $_REQUEST['url'])
+ || ! PMA_isAllowedDomain($_REQUEST['url'])
) {
header('Location: ' . $cfg['PmaAbsoluteUri']);
} else {
@@ -28,10 +28,10 @@ if (! PMA_isValid($_GET['url'])
// external site.
echo "<script type='text/javascript'>
window.onload=function(){
- window.location='" . PMA_escapeJsString($_GET['url']) . "';
+ window.location='" . PMA_escapeJsString($_REQUEST['url']) . "';
}
</script>";
// Display redirecting msg on screen.
- printf(__('Taking you to %s.'), htmlspecialchars($_GET['url']));
+ printf(__('Taking you to %s.'), htmlspecialchars($_REQUEST['url']));
}
die();