diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-05-07 15:23:50 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-05-07 15:23:50 +0300 |
commit | 7199825abd4a913e158fa7731ab3b9d17d7013a0 (patch) | |
tree | b622aee51a30b7767d8b354f4253079c8dbf9a26 /url.php | |
parent | ae4e5db3761ac0bbac9586c89ce956fae0b3f01f (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.php | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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(); |