aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-01-28 14:00:59 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-01-28 14:00:59 +0000
commit00aec3a3390e533324ad0628f93dab4734b67f7e (patch)
tree357ae050f02cfec8e96a356416c60dee676e3954 /phpBB/includes/functions_upload.php
parenteaef76a1000597dd36fedba39c5ce1073c169c06 (diff)
downloadforums-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.php2
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)
{