X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/03f216f58de659215008347947a754096902771e..6d6c111b80ad13201b7acd7c2f5b8fd6d160e11b:/lib/functions.php 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');