Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
helloxz committed Sep 26, 2018
1 parent c5810c4 commit c485e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/upload.php
Expand Up @@ -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('非法请求!');
}
Expand Down

0 comments on commit c485e87

Please sign in to comment.