Skip to content

Commit

Permalink
fix Abitrary File Read
Browse files Browse the repository at this point in the history
fix Abitrary File Read
  • Loading branch information
heroesoebekti authored Oct 27, 2017
1 parent 08ab295 commit acb1130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/help.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

if(isset($_GET['url']) && !empty($_GET['url'])) {
$file_path = HELP.'/'.$sysconf['default_lang'].'/'.$_GET['url'];
if(!file_exists($file_path)) {
if(!file_exists($file_path)|| !preg_match("/^.*\.(md)$/i", $file_path)) {
echo __('File Not Found');
} else {
//Convert Markdown to HTML
Expand Down

0 comments on commit acb1130

Please sign in to comment.