Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify default config key in CONTENT_VIEW_UNTIL_SIZE to enforce SVG f…
…iles to be downloaded instead of viewed inline. This is a temporary solution for vulnerable browsers with unsafe defaults that execute code inside SVG files containing JavaScript when they are accessed directly instead of showing them in plain text. Actually browsers don't execute scripts when SVG's are invoked using <img> due to security purposes, thus there is no reason to handle them differently on direct access, because the security risk is equal, however browsers do to not address this issue for some undefined reason. Remove the "image/svg" key from CONTENT_VIEW_UNTIL_SIZE to enable inline view of SVG files.
- Loading branch information