12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- use PhpMyAdmin\Core;
- use PhpMyAdmin\Sanitize;
- use PhpMyAdmin\Response;
- define('PMA_MINIMUM_COMMON', true);
- require_once './libraries/common.inc.php';
- $response = Response::getInstance();
- $response->getHeader()->sendHttpHeaders();
- $response->disable();
- if (! Core::isValid($_GET['url'])
- || ! preg_match('/^https:\/\/[^\n\r]*$/', $_GET['url'])
- || ! Core::isAllowedDomain($_GET['url'])
- ) {
- Core::sendHeaderLocation('./');
- } else {
-
-
-
-
- echo "<script type='text/javascript'>
- window.onload=function(){
- window.location='" , Sanitize::escapeJsString($_GET['url']) , "';
- }
- </script>";
-
-
- echo __('Taking you to the target site.');
- }
- die();
|