Translation update done using Pootle.
[phpmyadmin/ammar_yasir.git] / url.php
blobec0ab39a0ed1eef84e5aaea11547bff8814e6794
1 <?php
2 /**
3 * URL redirector to avoid leaking Referer with some sensitive information.
4 */
6 define('PMA_MINIMUM_COMMON', TRUE);
8 /**
9 * Gets core libraries and defines some variables
11 require_once './libraries/common.inc.php';
13 if (empty($GLOBALS['url']) || ! preg_match('/^https?:\/\/[^\n\r]*$/', $GLOBALS['url'])) {
14 header('Location: ' . $cfg['PmaAbsoluteUri']);
15 } else {
16 header('Location: ' . $GLOBALS['url']);