Skip to content

Commit

Permalink
Update filesave.php
Browse files Browse the repository at this point in the history
  • Loading branch information
erohtar committed Jan 19, 2023
1 parent e1e13b3 commit 445325c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/include/filesave.php
Expand Up @@ -3,7 +3,7 @@
$fname = $_POST['file'];

//check if file name ends with .json
if(substr($fname, -1, 5) != '.json') {
if(substr($fname, -5) != '.json') {
echo '<script>alert("ERROR: Incorrect file type submitted")</script>';
return;
}
Expand Down

0 comments on commit 445325c

Please sign in to comment.