Skip to content

Commit

Permalink
additional fix for issue #98
Browse files Browse the repository at this point in the history
  • Loading branch information
BSteelooper committed Apr 26, 2021
1 parent 89c40c7 commit 53ac175
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/inc/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<?php
if (isset($_POST['submit'])) {
$filenamestr = strtolower(latinOnlyInput($_FILES['filefile']['name']));
//remove a leading / if exists issue #98
if (substr($filenamestr, 0, 1) == '/'){
$filenamestr = substr($filenamestr, 1);
}
if ($filenamestr == '.htaccess' or strtolower(substr($filenamestr, 0, 9)) == '.htaccess'){
show_error($lang['general']['upload_failed'], 1);
} else {
Expand Down

0 comments on commit 53ac175

Please sign in to comment.