diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-04-26 09:24:03 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-04-26 09:24:03 +0200 |
commit | 59a178f3cba87f536826df251120f03980a556c6 (patch) | |
tree | dbf39e3c33642319b033b36e43ff6ccca2d52716 /phpBB/includes | |
parent | 887f83589ff34dc087b75f3f2dfa9f1da73c8dea (diff) | |
parent | 47514ca2df301631bf9ee2043e347f95f11f57da (diff) | |
download | forums-59a178f3cba87f536826df251120f03980a556c6.tar forums-59a178f3cba87f536826df251120f03980a556c6.tar.gz forums-59a178f3cba87f536826df251120f03980a556c6.tar.bz2 forums-59a178f3cba87f536826df251120f03980a556c6.tar.xz forums-59a178f3cba87f536826df251120f03980a556c6.zip |
Merge pull request #3532 from prototech/ticket/13755
[ticket/13755] Ignore dots in path when determining file extension.
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions_upload.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php index f179b2fd70..89bc31fa25 100644 --- a/phpBB/includes/functions_upload.php +++ b/phpBB/includes/functions_upload.php @@ -213,6 +213,8 @@ class filespec */ static public function get_extension($filename) { + $filename = utf8_basename($filename); + if (strpos($filename, '.') === false) { return ''; |