X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/7bff658ab883368c785f68a48f92cdfb1470be19..3d007ac30c40c8262fa259bcc8e8a1cabba1d9ef:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index 9091af7..0372507 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -623,7 +623,7 @@ function jirafeau_is_viewable($mime) if (!empty($mime)) { $viewable = array('image', 'video', 'audio'); $decomposed = explode('/', $mime); - if (in_array($decomposed[0], $viewable) && strpos($mime, 'image/svg+xml') === false) { + if (in_array($decomposed[0], $viewable) && stripos($mime, 'image/svg+xml') === false) { return true; } $viewable = array('text/plain');