Skip to content

Commit 445325c

Browse files
author
erohtar
committed
Update filesave.php
1 parent e1e13b3 commit 445325c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/include/filesave.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$fname = $_POST['file'];
44

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

0 commit comments

Comments
 (0)