1 Star 0 Fork 0

edwinfound/phpmyadmin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
url.php 507 Bytes
一键复制 编辑 原始数据 按行查看 历史
Edwin Zhao 提交于 2015-04-12 15:23 +08:00 . init
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* URL redirector to avoid leaking Referer with some sensitive information.
*
* @package PhpMyAdmin
*/
/**
* Gets core libraries and defines some variables
*/
define('PMA_MINIMUM_COMMON', True);
require_once './libraries/common.inc.php';
if (! PMA_isValid($_GET['url'])
|| ! preg_match('/^https?:\/\/[^\n\r]*$/', $_GET['url'])
) {
header('Location: ' . $cfg['PmaAbsoluteUri']);
} else {
header('Location: ' . $_GET['url']);
}
die();
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/edwinfound/phpmyadmin.git
git@gitee.com:edwinfound/phpmyadmin.git
edwinfound
phpmyadmin
phpmyadmin
master

搜索帮助