Translated using Weblate.
[phpmyadmin.git] / url.php
blob5088eff2c154654aaaae0d46d7c69df882f37754
1 <?php
2 /**
3 * URL redirector to avoid leaking Referer with some sensitive information.
4 */
6 /**
7 * Gets core libraries and defines some variables
8 */
9 require_once './libraries/common.inc.php';
11 if (! PMA_isValid($_GET['url']) || ! preg_match('/^https?:\/\/[^\n\r]*$/', $_GET['url'])) {
12 header('Location: ' . $cfg['PmaAbsoluteUri']);
13 } else {
14 header('Location: ' . $_GET['url']);