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:
Meik Sievertsen 2007-01-28 14:00:59 +00:00
parent eaef76a100
commit 00aec3a339

View file

@ -52,6 +52,7 @@ class filespec
$this->filesize = $upload_ary['size'];
$name = trim(htmlspecialchars(basename($upload_ary['name'])));
$this->realname = $this->uploadname = (STRIP) ? stripslashes($name) : $name;
$this->mimetype = $upload_ary['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;
@ -186,6 +187,7 @@ class filespec
/**
* Get mimetype. Utilize mime_content_type if the function exist.
* Not used at the moment...
*/
function get_mimetype($filename)
{