]> git.mxchange.org Git - friendica.git/commitdiff
On wall_attach, file extension to mimetype matching now breaks the filename at the...
authorColby Sollars <colby@nucleartuxedo.com>
Tue, 16 Feb 2021 22:50:20 +0000 (15:50 -0700)
committerColby Sollars <colby@nucleartuxedo.com>
Tue, 16 Feb 2021 22:50:20 +0000 (15:50 -0700)
src/Util/Mimetype.php

index bd87d30898a4abfac7940e412dfecb5d6b1026cc..5b50324b41365e268844a07a515a370f45fb2c17 100644 (file)
@@ -1088,7 +1088,7 @@ class Mimetype
                        'zsh' => 'text/x-script.zsh'
                ];
        
-               $dot = strpos($filename, '.');
+               $dot = strrpos($filename, '.');
                if ($dot !== false) {
                        $ext = strtolower(substr($filename, $dot + 1));
                        if (array_key_exists($ext, $mime_types)) {