X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/03f216f58de659215008347947a754096902771e..507be5f97be283db761fdf28f0e403e582fa1186:/lib/functions.php?ds=sidebyside diff --git a/lib/functions.php b/lib/functions.php index c831b73..6e5c886 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -511,7 +511,7 @@ function jirafeau_is_viewable($mime) if (!empty($mime)) { $viewable = array('image', 'video', 'audio'); $decomposed = explode('/', $mime); - if (in_array($decomposed[0], $viewable)) { + if (in_array($decomposed[0], $viewable) && strpos($mime, 'image/svg+xml') === false) { return true; } $viewable = array('text/plain');