aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2015-04-10 16:23:51 -0700
committerCesar G <prototech91@gmail.com>2015-04-10 16:23:51 -0700
commit47514ca2df301631bf9ee2043e347f95f11f57da (patch)
tree8a77c21a990e3069a7da77116b94fdb3bcd99256 /phpBB/includes/functions_upload.php
parenta151ad912a21e9f7ba4d5ef3bbee32b725cd1c5d (diff)
downloadforums-47514ca2df301631bf9ee2043e347f95f11f57da.tar
forums-47514ca2df301631bf9ee2043e347f95f11f57da.tar.gz
forums-47514ca2df301631bf9ee2043e347f95f11f57da.tar.bz2
forums-47514ca2df301631bf9ee2043e347f95f11f57da.tar.xz
forums-47514ca2df301631bf9ee2043e347f95f11f57da.zip
[ticket/13755] Ignore dots in path when determining file extension.
PHPBB3-13755
Diffstat (limited to 'phpBB/includes/functions_upload.php')
-rw-r--r--phpBB/includes/functions_upload.php2
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 '';