From 47514ca2df301631bf9ee2043e347f95f11f57da Mon Sep 17 00:00:00 2001 From: Cesar G Date: Fri, 10 Apr 2015 16:23:51 -0700 Subject: [ticket/13755] Ignore dots in path when determining file extension. PHPBB3-13755 --- phpBB/includes/functions_upload.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'phpBB/includes/functions_upload.php') 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 ''; -- cgit v1.2.1