1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15227] Remove STRIP, as always false

PHPBB3-15227
This commit is contained in:
javiexin
2017-05-21 12:58:05 +02:00
parent c2c5c20c31
commit 1d5f5ccffc
3 changed files with 3 additions and 7 deletions

View File

@@ -129,7 +129,7 @@ class filespec
$this->class_initialized = true;
$this->filename = $upload_ary['tmp_name'];
$this->filesize = $upload_ary['size'];
$name = (STRIP) ? stripslashes($upload_ary['name']) : $upload_ary['name'];
$name = $upload_ary['name'];
$name = trim(utf8_basename($name));
$this->realname = $this->uploadname = $name;
$this->mimetype = $upload_ary['type'];