mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
Add sanitization for SVG uploads and enhance security headers for asset responses
- Introduced SVG sanitization using `dompurify` to prevent malicious content. - Updated tests to validate SVG sanitization with various scenarios. - Enhanced response headers for assets, adding CSP and nosniff for SVGs. - Adjusted UI to better clarify supported file types for logo uploads. - Updated dependencies to include `jsdom` and `dompurify`.
This commit is contained in:
parent
1448b55ca4
commit
a4702e48f9
6 changed files with 569 additions and 32 deletions
|
|
@ -58,7 +58,7 @@ Valid image content types:
|
|||
- `image/jpg`
|
||||
- `image/webp`
|
||||
- `image/gif`
|
||||
- `image/svg+xml` (`.svg`)
|
||||
- `image/svg+xml`
|
||||
|
||||
## Archive Company
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue