Skip to content

Commit

Permalink
Update header.php
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Dec 18, 2020
1 parent ea8f11d commit 86257cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion header.php
Expand Up @@ -9,7 +9,7 @@
require_once "config.php";
require_once "app/code.php";
$id = $_GET['id'];
if(!preg_match("/^[a-z0-9\#]*$/",$id))
if(!preg_match("/^[a-zA-Z0-9\#]*$/",$id))
{
exit();
//判断id是否为纯英文数字,防止注入
Expand Down

0 comments on commit 86257cd

Please sign in to comment.