diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-01-28 14:00:59 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-01-28 14:00:59 +0000 |
commit | 00aec3a3390e533324ad0628f93dab4734b67f7e (patch) | |
tree | 357ae050f02cfec8e96a356416c60dee676e3954 /phpBB/includes/functions_upload.php | |
parent | eaef76a1000597dd36fedba39c5ce1073c169c06 (diff) | |
download | forums-00aec3a3390e533324ad0628f93dab4734b67f7e.tar forums-00aec3a3390e533324ad0628f93dab4734b67f7e.tar.gz forums-00aec3a3390e533324ad0628f93dab4734b67f7e.tar.bz2 forums-00aec3a3390e533324ad0628f93dab4734b67f7e.tar.xz forums-00aec3a3390e533324ad0628f93dab4734b67f7e.zip |
oh my god... someone please slap me very hard for this.
git-svn-id: file:///svn/phpbb/trunk@6945 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_upload.php')
-rw-r--r-- | phpBB/includes/functions_upload.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php index 33556e1893..489f3e942e 100644 --- a/phpBB/includes/functions_upload.php +++ b/phpBB/includes/functions_upload.php @@ -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) { |