1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 11:44:08 +02:00

Merge remote-tracking branch 'marc/ticket/12211' into develop-ascraeus

* marc/ticket/12211:
  [ticket/12211] Do not run attachment file names twice through htmlspecialchars
This commit is contained in:
Joas Schilling
2014-04-12 10:16:41 +02:00
2 changed files with 15 additions and 1 deletions

View File

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