STFQ SVG Upload
STFQ SVG Upload extends the functionality of the WordPress media library by enabling users to upload SVG (Scalable Vector Graphics) files securely.
by Strangefrequency LLC · github.com/heliogoodbye/stfq-svg-upload
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/heliogoodbye/stfq-svg-upload/releases/download/1.0/stfq-svg-upload.zipReadme
STFQ-SVG-Upload
STFQ SVG Upload extends the functionality of the WordPress media library by enabling users to upload SVG (Scalable Vector Graphics) files securely. With SVG becoming increasingly popular for web graphics due to its scalability and flexibility, this plugin ensures that WordPress users can incorporate SVG images into their websites without compromising security.
Key Features:
-
SVG Upload Support: Allows users to upload SVG files directly to the WordPress media library, just like other supported image formats.
-
Sanitization: Implements a custom sanitization process to ensure that uploaded SVG files are safe for use on the website. The sanitization logic removes potentially harmful elements and attributes from the SVG content, mitigating security risks associated with SVG files.
-
Event Handler Removal: Eliminates event handler attributes (e.g.,
onload,onclick) from SVG elements to prevent any unintended execution of scripts embedded within SVG files. -
Script Tag Removal: Removes all `
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 1.0 | May 13, 2024 | stfq-svg-upload.zip | 14 |