mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
Merge branch 'ticket/bantu/9615' into develop-olympus
* ticket/bantu/9615: [ticket/9615] magic_quotes_gpc: call stripslashes() before utf8_basename()
This commit is contained in:
commit
ebb4a50d9b
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue