Skip to content

Commit

Permalink
Use new methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Oct 15, 2024
1 parent 0af0d61 commit cb1ff18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webroot/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

$url = parse_url(urldecode($_SERVER['REQUEST_URI']));
$file = __DIR__ . $url['path'];
if (strpos($url['path'], '..') === false && strpos($url['path'], '.') !== false && is_file($file)) {
if (!str_contains($url['path'], '..') && str_contains($url['path'], '.') && is_file($file)) {
return false;
}
}
Expand Down

0 comments on commit cb1ff18

Please sign in to comment.