diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2019-08-16 09:27:14 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2019-08-16 09:27:14 +0300 |
| commit | 9c366a4811dd0b919171f3de04c4cd781c5e8e20 (patch) | |
| tree | 6ac4483069d7486148d74a1f492e8d775f746112 | |
| parent | e53cd12ffd7237af3ffa87431d849db44b892d63 (diff) | |
clean_filename: also remove markup
| -rw-r--r-- | include/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index c326ac468..e78f0de9d 100644 --- a/include/functions.php +++ b/include/functions.php @@ -593,7 +593,7 @@ } function clean_filename($filename) { - return basename(preg_replace("/\.\.|[\/\\\]/", "", $filename)); + return basename(preg_replace("/\.\.|[\/\\\]/", "", clean($filename))); } function make_password($length = 12) { |