X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=ecf4752915f22a85abee826d9534122433a38fcb;hb=6797485f6eea4700d5801afdf7ed7567e4e3fdf1;hp=a66ed0d059c6d36970d0f77ff2796541e68a301a;hpb=9d2afc2d3c12f6b70eae11487e491e2d8604ed60;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php old mode 100644 new mode 100755 index a66ed0d059..ecf4752915 --- 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` )