Skip to content

Commit

Permalink
修复XSS漏洞
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed Jan 7, 2019
1 parent c9185f8 commit a8679fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

//获取目录
$dir = $_GET['dir'];
$dir = strip_tags($dir);
$dir = str_replace("\\","/",$dir);
//获取markdown文件地址

Expand Down

0 comments on commit a8679fe

Please sign in to comment.