Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwinc committed Jan 21, 2025
1 parent 55ca4d5 commit a32dac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/public/cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$is_question = false;
}

if (str_pos($scriptname, '..') !== false
if (strpos($scriptname, '..') !== false
|| strpos($scriptname, '/') !== false
|| strpos($scriptname, '\\') !== false) {
die("No such script here.");
Expand Down

0 comments on commit a32dac2

Please sign in to comment.