mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
oh my god... someone please slap me very hard for this.
git-svn-id: file:///svn/phpbb/trunk@6945 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
eaef76a100
commit
00aec3a339
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ class filespec
|
||||||
$this->filesize = $upload_ary['size'];
|
$this->filesize = $upload_ary['size'];
|
||||||
$name = trim(htmlspecialchars(basename($upload_ary['name'])));
|
$name = trim(htmlspecialchars(basename($upload_ary['name'])));
|
||||||
$this->realname = $this->uploadname = (STRIP) ? stripslashes($name) : $name;
|
$this->realname = $this->uploadname = (STRIP) ? stripslashes($name) : $name;
|
||||||
|
$this->mimetype = $upload_ary['type'];
|
||||||
|
|
||||||
// Opera adds the name to the mime type
|
// Opera adds the name to the mime type
|
||||||
$this->mimetype = (strpos($this->mimetype, '; name') !== false) ? str_replace(strstr($this->mimetype, '; name'), '', $this->mimetype) : $this->mimetype;
|
$this->mimetype = (strpos($this->mimetype, '; name') !== false) ? str_replace(strstr($this->mimetype, '; name'), '', $this->mimetype) : $this->mimetype;
|
||||||
|
@ -186,6 +187,7 @@ class filespec
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mimetype. Utilize mime_content_type if the function exist.
|
* Get mimetype. Utilize mime_content_type if the function exist.
|
||||||
|
* Not used at the moment...
|
||||||
*/
|
*/
|
||||||
function get_mimetype($filename)
|
function get_mimetype($filename)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue