mirror of https://github.com/helloxz/imgurl
fix bug
parent
c5810c421b
commit
c485e87414
|
@ -2,7 +2,7 @@
|
|||
//载入配置文件
|
||||
include_once("./class/class.user.php");
|
||||
//阻止用户直接访问
|
||||
if( $_SERVER['HTTP_REFERER'] != $config['domain'] )
|
||||
if( !strstr($_SERVER['HTTP_REFERER'],$config['domain']) )
|
||||
{
|
||||
$basis->re_error('非法请求!');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue