Permalink
Browse files

Redirect at browser-side.

  • Loading branch information...
1 parent b9e4f8e commit f39bc919c9b73c13b7f6c90be2c0884e0b65fef4 @dhananjay92 committed Feb 3, 2014
Showing with 7 additions and 2 deletions.
  1. +7 −2 url.php
View
@@ -11,13 +11,18 @@
*/
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']);
+ echo "<script type='text/javascript'>
+ window.onload=function(){
+ window.location='".$_GET['url']."';
+ }
+ </script>";
}
die();
?>

0 comments on commit f39bc91

Please sign in to comment.