Permalink
Browse files

Check presence of ['HTTP_REFERER'] in url.php redirects.

  • Loading branch information...
1 parent 730bbad commit b9e4f8e5be6f4cedc83e404d6ff29b61f0b4b567 @dhananjay92 committed Feb 3, 2014
Showing with 6 additions and 3 deletions.
  1. +3 −0 test.php
  2. +3 −3 url.php
View
@@ -0,0 +1,3 @@
+<?php
+var_dump($_SERVER);
+?>
View
@@ -11,13 +11,13 @@
*/
define('PMA_MINIMUM_COMMON', true);
require_once './libraries/common.inc.php';
-
+header('Location: ./test.php');
if (! PMA_isValid($_GET['url'])
|| ! preg_match('/^https?:\/\/[^\n\r]*$/', $_GET['url'])
) {
- header('Location: ' . $cfg['PmaAbsoluteUri']);
+ //header('Location: ' . $cfg['PmaAbsoluteUri']);
} else {
- header('Location: ' . $_GET['url']);
+ // header('Location: ' . $_GET['url']);
}
die();
?>

0 comments on commit b9e4f8e

Please sign in to comment.