Safe SVG - Version 1.4.3

Version Description

  • WordPress 4.7.3 Compatibility
  • Expanded SVG previews in media library
Download this release

Release Info

Developer enshrined
Plugin Icon 128x128 Safe SVG
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

Files changed (2) hide show
  1. readme.txt +26 -7
  2. safe-svg.php +3 -2
readme.txt CHANGED
@@ -1,20 +1,35 @@
1
  === Safe SVG ===
2
  Contributors: enshrined
3
- Donate link: http://enshrined.co.uk
4
- Tags: svg, sanitize, uploads, sanitise, security, svg upload
5
  Requires at least: 4.0
6
- Tested up to: 4.7.2
7
- Stable tag: 1.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Allow SVG uploads and sanitize them to stop XML/SVG vulnerabilities
12
 
13
  == Description ==
14
 
15
- Safe SVG gives you the ability to allow SVG uploads in WordPress and make sure that they're sanitized to stop SVG/XML vulnerabilities affecting your site.
16
 
17
- This is more of a proof of concept for [#24251](https://core.trac.wordpress.org/ticket/24251) than anything but feel free to use it!
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  SVG Sanitization is done through the following library: [https://github.com/darylldoyle/svg-sanitizer](https://github.com/darylldoyle/svg-sanitizer)
20
 
@@ -24,6 +39,10 @@ Install through the WordPress directory or download, unzip and upload the files
24
 
25
  == Changelog ==
26
 
 
 
 
 
27
  = 1.4.2 =
28
  * Added a check / fix for when mb_* functions are not available
29
 
1
  === Safe SVG ===
2
  Contributors: enshrined
3
+ Donate link: https://wpsvg.com/
4
+ Tags: svg, sanitize, upload, sanitise, security, svg upload, image, vector, file, graphic, media, mime
5
  Requires at least: 4.0
6
+ Tested up to: 4.7.3
7
+ Stable tag: 1.4.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website
12
 
13
  == Description ==
14
 
15
+ Safe SVG is the best way to Allow SVG Uploads in WordPress!
16
 
17
+ It gives you the ability to allow SVG uploads whilst making sure that they're sanitized to stop SVG/XML vulnerabilities affecting your site.
18
+ It also gives you the ability to preview your uploaded SVGs in the media library in all views.
19
+
20
+ >**[Loving Safe SVG? Try the Pro version for extra features.](https://wpsvg.com/)**
21
+
22
+ #### Free Features
23
+ * **Sanitised SVGs** - Don't open up security holes in your WordPress site by allowing uploads of unsanitised files.
24
+ * **View SVGs in the Media Library** - Gone are the days of guessing which SVG is the correct one, we'll enable SVG previews in the WordPress media library.
25
+
26
+ #### Pro Features
27
+ * **SVGO Optimisation** - You'll have the option to run your SVGs through our SVGO server on upload to save you space.
28
+ * **Choose Who Can Upload** - Restrict SVG uploads to certain users on your WordPress site or allow anyone to upload.
29
+ * **Premium Support** - Pro users get premium support whilst free support is offered in the WordPress forums in our spare time
30
+
31
+
32
+ Initially a proof of concept for [#24251](https://core.trac.wordpress.org/ticket/24251)
33
 
34
  SVG Sanitization is done through the following library: [https://github.com/darylldoyle/svg-sanitizer](https://github.com/darylldoyle/svg-sanitizer)
35
 
39
 
40
  == Changelog ==
41
 
42
+ = 1.4.3 =
43
+ * WordPress 4.7.3 Compatibility
44
+ * Expanded SVG previews in media library
45
+
46
  = 1.4.2 =
47
  * Added a check / fix for when mb_* functions are not available
48
 
safe-svg.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: Safe SVG
4
- Plugin URI: https://wordpress.org/plugins/safe-svg/
5
  Description: Allows SVG uploads into WordPress and sanitizes the SVG before saving it
6
- Version: 1.4.2
7
  Author: Daryll Doyle
8
  Author URI: http://enshrined.co.uk
9
  Text Domain: safe-svg
@@ -186,6 +186,7 @@ if ( ! class_exists( 'safe_svg' ) ) {
186
  }
187
 
188
  $response['sizes'] = $sizes;
 
189
  }
190
 
191
  return $response;
1
  <?php
2
  /*
3
  Plugin Name: Safe SVG
4
+ Plugin URI: https://wpsvg.com/
5
  Description: Allows SVG uploads into WordPress and sanitizes the SVG before saving it
6
+ Version: 1.4.3
7
  Author: Daryll Doyle
8
  Author URI: http://enshrined.co.uk
9
  Text Domain: safe-svg
186
  }
187
 
188
  $response['sizes'] = $sizes;
189
+ $response['icon'] = $response['url'];
190
  }
191
 
192
  return $response;