aboutsummaryrefslogtreecommitdiffstats
path: root/mod/wall_attach.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-28 12:09:17 -0800
committerfriendica <info@friendica.com>2012-01-28 12:09:17 -0800
commitd54042dd3898c5f4f0bc67df576484c6d25c86b2 (patch)
tree548e34b55fe5610032c9a85d3ee4b835ed71f75b /mod/wall_attach.php
parent5161be67e9f4eebe5723b44ddd3ad37e18f0a632 (diff)
downloadvolse-hubzilla-d54042dd3898c5f4f0bc67df576484c6d25c86b2.tar.gz
volse-hubzilla-d54042dd3898c5f4f0bc67df576484c6d25c86b2.tar.bz2
volse-hubzilla-d54042dd3898c5f4f0bc67df576484c6d25c86b2.zip
mime_content_type requires access to the file, not just the name
Diffstat (limited to 'mod/wall_attach.php')
-rwxr-xr-xmod/wall_attach.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/mod/wall_attach.php b/mod/wall_attach.php
index a66ed0d05..ecf475291 100755
--- a/mod/wall_attach.php
+++ b/mod/wall_attach.php
@@ -61,8 +61,6 @@ function wall_attach_post(&$a) {
$filedata = @file_get_contents($src);
$mimetype = z_mime_content_type($filename);
- if(((! strlen($mimetype)) || ($mimetype === 'application/octet-stream')) && function_exists('mime_content_type'))
- $mimetype = mime_content_type($filename);
$hash = random_string();
$created = datetime_convert();
$r = q("INSERT INTO `attach` ( `uid`, `hash`, `filename`, `filetype`, `filesize`, `data`, `created`, `edited`, `allow_cid`, `allow_gid`,`deny_cid`, `deny_gid` )