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:
@@ -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'];
|
||||
|
||||
|
Reference in New Issue
Block a user