aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-09-02 17:35:44 +0200
committerAndreas Fischer <bantu@phpbb.com>2010-09-02 17:35:44 +0200
commitea4d204cf68b3cee2bfb0633085e4ebdadeb3a80 (patch)
tree200765b027893692ce5e8fdd6425d7500b58c93a /phpBB/includes/functions_upload.php
parentf1550a65b53fb64b438d5c15ef83bf4e63dafa5f (diff)
parentba0072080d591d2d01cae89872a9da035a0ec401 (diff)
downloadforums-ea4d204cf68b3cee2bfb0633085e4ebdadeb3a80.tar
forums-ea4d204cf68b3cee2bfb0633085e4ebdadeb3a80.tar.gz
forums-ea4d204cf68b3cee2bfb0633085e4ebdadeb3a80.tar.bz2
forums-ea4d204cf68b3cee2bfb0633085e4ebdadeb3a80.tar.xz
forums-ea4d204cf68b3cee2bfb0633085e4ebdadeb3a80.zip
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/9662] Search flood interval no longer applies to non-keyword searches [ticket/9615] magic_quotes_gpc: call stripslashes() before utf8_basename()
Diffstat (limited to 'phpBB/includes/functions_upload.php')
-rw-r--r--phpBB/includes/functions_upload.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php
index 51fed45ebd..7f09cc1640 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -58,8 +58,9 @@ class filespec
$this->filename = $upload_ary['tmp_name'];
$this->filesize = $upload_ary['size'];
- $name = trim(utf8_htmlspecialchars(utf8_basename($upload_ary['name'])));
- $this->realname = $this->uploadname = (STRIP) ? stripslashes($name) : $name;
+ $name = (STRIP) ? stripslashes($upload_ary['name']) : $upload_ary['name'];
+ $name = trim(utf8_htmlspecialchars(utf8_basename($name)));
+ $this->realname = $this->uploadname = $name;
$this->mimetype = $upload_ary['type'];
// Opera adds the name to the mime type