X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fattach.php;h=ee6f49937af5ea2d56b1c98588f693a1b4e3079c;hb=95a358a4a5c5ffd59aead4706448f7d979a59765;hp=3232f3e763da6869d359e58677befa73e36895f6;hpb=9c2c4839968169a191084d6d2b0d629d82430e67;p=friendica.git diff --git a/include/attach.php b/include/attach.php index 3232f3e763..ee6f49937a 100644 --- a/include/attach.php +++ b/include/attach.php @@ -1060,13 +1060,14 @@ function z_mime_content_type($filename) { 'zsh' => 'text/x-script.zsh', ); - $dot = strpos($filename,'.'); + $dot = strpos($filename, '.'); if ($dot !== false) { - $ext = strtolower(substr($filename,$dot+1)); + $ext = strtolower(substr($filename, $dot + 1)); if (array_key_exists($ext, $mime_types)) { return $mime_types[$ext]; } } + /// @TODO Then let's get rid of it? // can't use this because we're just passing a name, e.g. not a file that can be opened // elseif (function_exists('finfo_open')) { // $finfo = @finfo_open(FILEINFO_MIME);