Force download if image is SVG

This commit is contained in:
Luc Didry
2017-02-13 21:35:44 +01:00
parent 4629d2ae2d
commit 4c0df8f8b1
+1
View File
@@ -75,6 +75,7 @@ sub startup {
my $c = shift;
my ($filename, $path, $mediatype, $dl, $expires, $nocache, $key, $thumb) = @_;
$dl = 'attachment' if ($mediatype =~ m/svg/);
$filename = quote($filename);
my $asset;