mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02: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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user