1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2025-01-31 20:11:38 +01:00

Fix displaying SVG images in the uploaded folder on Apache - closes #3522

This commit is contained in:
FreeScout 2023-11-12 22:45:55 -08:00
parent 8b80bd4119
commit 1dd59bc2b6

View File

@ -4,4 +4,11 @@
ForceType application/octet-stream ForceType application/octet-stream
Header set Content-Disposition attachment Header set Content-Disposition attachment
</FilesMatch> </FilesMatch>
# SVG image is the special case: it is an image but we can't
# let it open in the browser as it may content malicious code
# and it requires a special "image/svg+xml" content type to be set.
<FilesMatch "\.svg$">
ForceType image/svg+xml
Header set Content-Disposition attachment
</FilesMatch>
</IfModule> </IfModule>