Skip to content

Commit

Permalink
the dollar was removed from the default, add it here (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyiq committed May 10, 2021
1 parent fd62357 commit 9f9eecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/utils/Utilities.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public static function validateEmail($email)
*/
public static function isValidFileName($filename)
{
return preg_match('/' . Config::get('valid_filename_regex') . '/u', $filename);
return preg_match('/' . Config::get('valid_filename_regex') . '$/u', $filename);
}


Expand Down

0 comments on commit 9f9eecf

Please sign in to comment.