WP Manifestindependent plugin directory
manifest / media / stfq-svg-upload

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

0stars
14release downloads
0forks

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.zip

Readme

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:

  1. SVG Upload Support: Allows users to upload SVG files directly to the WordPress media library, just like other supported image formats.

  2. 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.

  3. 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.

  4. Script Tag Removal: Removes all `

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
1.0 May 13, 2024 stfq-svg-upload.zip 14