We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1e13b3 commit 445325cCopy full SHA for 445325c
www/include/filesave.php
@@ -3,7 +3,7 @@
3
$fname = $_POST['file'];
4
5
//check if file name ends with .json
6
- if(substr($fname, -1, 5) != '.json') {
+ if(substr($fname, -5) != '.json') {
7
echo '<script>alert("ERROR: Incorrect file type submitted")</script>';
8
return;
9
}
0 commit comments