Version Description
- 2022-06-27 =
- Added: Dependency security scanning (props @jeffpaul via #60).
- Added: End-to-end testing with Cypress (props @iamdharmesh via #64).
- Changed: Bump WordPress version "tested up to" 6.0 (props @dkotter via #65).
- Removed: Redundant premium version upgrade link (props @ocean90, @peterwilsoncc via #61).
- Removed: Unneeded admin CSS fix for featured images (props @AdamWills, @dkotter, @peterwilsoncc via #63).
Download this release
Release Info
| Developer | 10up |
| Plugin | |
| Version | 2.0.2 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.1 to 2.0.2
- assets/safe-svg.css +0 -7
- languages/safe-svg-da_DK.mo +0 -0
- languages/safe-svg-da_DK.po +0 -38
- languages/safe-svg-de_DE.mo +0 -0
- languages/safe-svg-de_DE.po +0 -38
- languages/safe-svg-en_GB.mo +0 -0
- languages/safe-svg-en_GB.po +0 -38
- languages/safe-svg-es_ES.mo +0 -0
- languages/safe-svg-es_ES.po +0 -38
- languages/safe-svg-fr_FR.mo +0 -0
- languages/safe-svg-fr_FR.po +0 -38
- languages/safe-svg-nl_NL.mo +0 -0
- languages/safe-svg-nl_NL.po +0 -38
- languages/safe-svg-ru_RU.mo +0 -0
- languages/safe-svg-ru_RU.po +0 -38
- readme.txt +9 -2
- safe-svg.php +1 -17
- vendor/autoload.php +1 -1
- vendor/composer/InstalledVersions.php +7 -7
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +8 -8
assets/safe-svg.css
CHANGED
|
@@ -4,10 +4,3 @@
|
|
| 4 |
#postimagediv .inside .svg img {
|
| 5 |
width: 100%;
|
| 6 |
}
|
| 7 |
-
|
| 8 |
-
/**
|
| 9 |
-
* Fix for Gutenberg not showing featured images correctly.
|
| 10 |
-
*/
|
| 11 |
-
img.components-responsive-wrapper__content[src$=".svg"] {
|
| 12 |
-
position: relative;
|
| 13 |
-
}
|
| 4 |
#postimagediv .inside .svg img {
|
| 5 |
width: 100%;
|
| 6 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/safe-svg-da_DK.mo
DELETED
|
Binary file
|
languages/safe-svg-da_DK.po
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
msgid ""
|
| 2 |
-
msgstr ""
|
| 3 |
-
"MIME-Version: 1.0\n"
|
| 4 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
| 5 |
-
"Content-Transfer-Encoding: 8bit\n"
|
| 6 |
-
"X-Generator: POEditor.com\n"
|
| 7 |
-
"Project-Id-Version: Safe SVG\n"
|
| 8 |
-
"Language: da\n"
|
| 9 |
-
|
| 10 |
-
#: safe-svg.php:66
|
| 11 |
-
msgid "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded"
|
| 12 |
-
msgstr "Beklager, kunne denne fil ikke desinficeres, så af sikkerhedsmæssige årsager ikke er uploadet"
|
| 13 |
-
|
| 14 |
-
#. Plugin Name of the plugin/theme
|
| 15 |
-
#:
|
| 16 |
-
msgid "Safe SVG"
|
| 17 |
-
msgstr "Sikker SVG"
|
| 18 |
-
|
| 19 |
-
#. Plugin URI of the plugin/theme
|
| 20 |
-
#:
|
| 21 |
-
msgid "https://wordpress.org/plugins/safe-svg/"
|
| 22 |
-
msgstr "https://wordpress.org/plugins/safe-svg/"
|
| 23 |
-
|
| 24 |
-
#. Description of the plugin/theme
|
| 25 |
-
#:
|
| 26 |
-
msgid "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
|
| 27 |
-
msgstr "Tillader SVG uploads i Wordpress og renser SVG før du gemmer det"
|
| 28 |
-
|
| 29 |
-
#. Author of the plugin/theme
|
| 30 |
-
#:
|
| 31 |
-
msgid "Daryll Doyle"
|
| 32 |
-
msgstr "Daryll Doyle"
|
| 33 |
-
|
| 34 |
-
#. Author URI of the plugin/theme
|
| 35 |
-
#:
|
| 36 |
-
msgid "http://enshrined.co.uk"
|
| 37 |
-
msgstr "http://enshrined.co.uk"
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/safe-svg-de_DE.mo
DELETED
|
Binary file
|
languages/safe-svg-de_DE.po
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
msgid ""
|
| 2 |
-
msgstr ""
|
| 3 |
-
"MIME-Version: 1.0\n"
|
| 4 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
| 5 |
-
"Content-Transfer-Encoding: 8bit\n"
|
| 6 |
-
"X-Generator: POEditor.com\n"
|
| 7 |
-
"Project-Id-Version: Safe SVG\n"
|
| 8 |
-
"Language: de\n"
|
| 9 |
-
|
| 10 |
-
#: safe-svg.php:66
|
| 11 |
-
msgid "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded"
|
| 12 |
-
msgstr "Leider konnte diese Datei nicht bereinigt, damit aus Sicherheitsgründen nicht hochgeladen wurde sein"
|
| 13 |
-
|
| 14 |
-
#. Plugin Name of the plugin/theme
|
| 15 |
-
#:
|
| 16 |
-
msgid "Safe SVG"
|
| 17 |
-
msgstr "Safe SVG"
|
| 18 |
-
|
| 19 |
-
#. Plugin URI of the plugin/theme
|
| 20 |
-
#:
|
| 21 |
-
msgid "https://wordpress.org/plugins/safe-svg/"
|
| 22 |
-
msgstr "https://wordpress.org/plugins/safe-svg/"
|
| 23 |
-
|
| 24 |
-
#. Description of the plugin/theme
|
| 25 |
-
#:
|
| 26 |
-
msgid "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
|
| 27 |
-
msgstr "Ermöglicht SVG Uploads in Wordpress und reinigt die SVG vor dem Speichern"
|
| 28 |
-
|
| 29 |
-
#. Author of the plugin/theme
|
| 30 |
-
#:
|
| 31 |
-
msgid "Daryll Doyle"
|
| 32 |
-
msgstr "Daryll Doyle"
|
| 33 |
-
|
| 34 |
-
#. Author URI of the plugin/theme
|
| 35 |
-
#:
|
| 36 |
-
msgid "http://enshrined.co.uk"
|
| 37 |
-
msgstr "http://enshrined.co.uk"
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/safe-svg-en_GB.mo
DELETED
|
Binary file
|
languages/safe-svg-en_GB.po
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
msgid ""
|
| 2 |
-
msgstr ""
|
| 3 |
-
"MIME-Version: 1.0\n"
|
| 4 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
| 5 |
-
"Content-Transfer-Encoding: 8bit\n"
|
| 6 |
-
"X-Generator: POEditor.com\n"
|
| 7 |
-
"Project-Id-Version: Safe SVG\n"
|
| 8 |
-
"Language: en\n"
|
| 9 |
-
|
| 10 |
-
#: safe-svg.php:66
|
| 11 |
-
msgid "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded"
|
| 12 |
-
msgstr "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded "
|
| 13 |
-
|
| 14 |
-
#. Plugin Name of the plugin/theme
|
| 15 |
-
#:
|
| 16 |
-
msgid "Safe SVG"
|
| 17 |
-
msgstr "Safe SVG "
|
| 18 |
-
|
| 19 |
-
#. Plugin URI of the plugin/theme
|
| 20 |
-
#:
|
| 21 |
-
msgid "https://wordpress.org/plugins/safe-svg/"
|
| 22 |
-
msgstr "https://wordpress.org/plugins/safe-svg/"
|
| 23 |
-
|
| 24 |
-
#. Description of the plugin/theme
|
| 25 |
-
#:
|
| 26 |
-
msgid "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
|
| 27 |
-
msgstr "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
|
| 28 |
-
|
| 29 |
-
#. Author of the plugin/theme
|
| 30 |
-
#:
|
| 31 |
-
msgid "Daryll Doyle"
|
| 32 |
-
msgstr "Daryll Doyle"
|
| 33 |
-
|
| 34 |
-
#. Author URI of the plugin/theme
|
| 35 |
-
#:
|
| 36 |
-
msgid "http://enshrined.co.uk"
|
| 37 |
-
msgstr "http://enshrined.co.uk"
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/safe-svg-es_ES.mo
DELETED
|
Binary file
|
languages/safe-svg-es_ES.po
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
msgid ""
|
| 2 |
-
msgstr ""
|
| 3 |
-
"MIME-Version: 1.0\n"
|
| 4 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
| 5 |
-
"Content-Transfer-Encoding: 8bit\n"
|
| 6 |
-
"X-Generator: POEditor.com\n"
|
| 7 |
-
"Project-Id-Version: Safe SVG\n"
|
| 8 |
-
"Language: es\n"
|
| 9 |
-
|
| 10 |
-
#: safe-svg.php:66
|
| 11 |
-
msgid "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded"
|
| 12 |
-
msgstr "Lo sentimos, este fichero no pudo ser desinfectados por razones de seguridad no fue subido"
|
| 13 |
-
|
| 14 |
-
#. Plugin Name of the plugin/theme
|
| 15 |
-
#:
|
| 16 |
-
msgid "Safe SVG"
|
| 17 |
-
msgstr "SVG Segura"
|
| 18 |
-
|
| 19 |
-
#. Plugin URI of the plugin/theme
|
| 20 |
-
#:
|
| 21 |
-
msgid "https://wordpress.org/plugins/safe-svg/"
|
| 22 |
-
msgstr "https://wordpress.org/plugins/safe-svg/"
|
| 23 |
-
|
| 24 |
-
#. Description of the plugin/theme
|
| 25 |
-
#:
|
| 26 |
-
msgid "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
|
| 27 |
-
msgstr "Permite archivos SVG en Wordpress y desinfecta el SVG antes de guardarlo"
|
| 28 |
-
|
| 29 |
-
#. Author of the plugin/theme
|
| 30 |
-
#:
|
| 31 |
-
msgid "Daryll Doyle"
|
| 32 |
-
msgstr "Daryll Doyle"
|
| 33 |
-
|
| 34 |
-
#. Author URI of the plugin/theme
|
| 35 |
-
#:
|
| 36 |
-
msgid "http://enshrined.co.uk"
|
| 37 |
-
msgstr "http://enshrined.co.uk"
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/safe-svg-fr_FR.mo
DELETED
|
Binary file
|
languages/safe-svg-fr_FR.po
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
msgid ""
|
| 2 |
-
msgstr ""
|
| 3 |
-
"MIME-Version: 1.0\n"
|
| 4 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
| 5 |
-
"Content-Transfer-Encoding: 8bit\n"
|
| 6 |
-
"X-Generator: POEditor.com\n"
|
| 7 |
-
"Project-Id-Version: Safe SVG\n"
|
| 8 |
-
"Language: fr\n"
|
| 9 |
-
|
| 10 |
-
#: safe-svg.php:66
|
| 11 |
-
msgid "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded"
|
| 12 |
-
msgstr "Désolé, ce fichier n'a pas pu être désinfectés pour des raisons de sécurité n'a pas été téléchargé"
|
| 13 |
-
|
| 14 |
-
#. Plugin Name of the plugin/theme
|
| 15 |
-
#:
|
| 16 |
-
msgid "Safe SVG"
|
| 17 |
-
msgstr "Safe SVG"
|
| 18 |
-
|
| 19 |
-
#. Plugin URI of the plugin/theme
|
| 20 |
-
#:
|
| 21 |
-
msgid "https://wordpress.org/plugins/safe-svg/"
|
| 22 |
-
msgstr "https://wordpress.org/plugins/safe-svg/"
|
| 23 |
-
|
| 24 |
-
#. Description of the plugin/theme
|
| 25 |
-
#:
|
| 26 |
-
msgid "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
|
| 27 |
-
msgstr "Permet le téléchargement de SVG en Wordpress et assainit le SVG avant de l'enregistrer"
|
| 28 |
-
|
| 29 |
-
#. Author of the plugin/theme
|
| 30 |
-
#:
|
| 31 |
-
msgid "Daryll Doyle"
|
| 32 |
-
msgstr "Daryll Doyle"
|
| 33 |
-
|
| 34 |
-
#. Author URI of the plugin/theme
|
| 35 |
-
#:
|
| 36 |
-
msgid "http://enshrined.co.uk"
|
| 37 |
-
msgstr "http://enshrined.co.uk"
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/safe-svg-nl_NL.mo
DELETED
|
Binary file
|
languages/safe-svg-nl_NL.po
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
msgid ""
|
| 2 |
-
msgstr ""
|
| 3 |
-
"MIME-Version: 1.0\n"
|
| 4 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
| 5 |
-
"Content-Transfer-Encoding: 8bit\n"
|
| 6 |
-
"X-Generator: POEditor.com\n"
|
| 7 |
-
"Project-Id-Version: Safe SVG\n"
|
| 8 |
-
"Language: nl\n"
|
| 9 |
-
|
| 10 |
-
#: safe-svg.php:66
|
| 11 |
-
msgid "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded"
|
| 12 |
-
msgstr "Sorry, dit bestand kan niet worden opgeschoond, zodat om veiligheidsredenen werd niet geupload"
|
| 13 |
-
|
| 14 |
-
#. Plugin Name of the plugin/theme
|
| 15 |
-
#:
|
| 16 |
-
msgid "Safe SVG"
|
| 17 |
-
msgstr "Safe SVG"
|
| 18 |
-
|
| 19 |
-
#. Plugin URI of the plugin/theme
|
| 20 |
-
#:
|
| 21 |
-
msgid "https://wordpress.org/plugins/safe-svg/"
|
| 22 |
-
msgstr "https://wordpress.org/plugins/safe-svg/"
|
| 23 |
-
|
| 24 |
-
#. Description of the plugin/theme
|
| 25 |
-
#:
|
| 26 |
-
msgid "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
|
| 27 |
-
msgstr "Hiermee kunnen SVG upload in Wordpress en reinigt de SVG alvorens deze op te slaan"
|
| 28 |
-
|
| 29 |
-
#. Author of the plugin/theme
|
| 30 |
-
#:
|
| 31 |
-
msgid "Daryll Doyle"
|
| 32 |
-
msgstr "Daryll Doyle"
|
| 33 |
-
|
| 34 |
-
#. Author URI of the plugin/theme
|
| 35 |
-
#:
|
| 36 |
-
msgid "http://enshrined.co.uk"
|
| 37 |
-
msgstr "http://enshrined.co.uk"
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/safe-svg-ru_RU.mo
DELETED
|
Binary file
|
languages/safe-svg-ru_RU.po
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
msgid ""
|
| 2 |
-
msgstr ""
|
| 3 |
-
"MIME-Version: 1.0\n"
|
| 4 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
| 5 |
-
"Content-Transfer-Encoding: 8bit\n"
|
| 6 |
-
"X-Generator: POEditor.com\n"
|
| 7 |
-
"Project-Id-Version: Safe SVG\n"
|
| 8 |
-
"Language: ru\n"
|
| 9 |
-
|
| 10 |
-
#: safe-svg.php:66
|
| 11 |
-
msgid "Sorry, this file couldn't be sanitized so for security reasons wasn't uploaded"
|
| 12 |
-
msgstr "К сожалению, этот файл не может быть продезинфицировать так по соображениям безопасности не был загружен"
|
| 13 |
-
|
| 14 |
-
#. Plugin Name of the plugin/theme
|
| 15 |
-
#:
|
| 16 |
-
msgid "Safe SVG"
|
| 17 |
-
msgstr "Безопасный SVG"
|
| 18 |
-
|
| 19 |
-
#. Plugin URI of the plugin/theme
|
| 20 |
-
#:
|
| 21 |
-
msgid "https://wordpress.org/plugins/safe-svg/"
|
| 22 |
-
msgstr "https://wordpress.org/plugins/safe-svg/"
|
| 23 |
-
|
| 24 |
-
#. Description of the plugin/theme
|
| 25 |
-
#:
|
| 26 |
-
msgid "Allows SVG uploads into Wordpress and sanitizes the SVG before saving it"
|
| 27 |
-
msgstr "Позволяет SVG добавления в Wordpress и дезинфицирует SVG до его сохранения"
|
| 28 |
-
|
| 29 |
-
#. Author of the plugin/theme
|
| 30 |
-
#:
|
| 31 |
-
msgid "Daryll Doyle"
|
| 32 |
-
msgstr "Daryll Doyle"
|
| 33 |
-
|
| 34 |
-
#. Author URI of the plugin/theme
|
| 35 |
-
#:
|
| 36 |
-
msgid "http://enshrined.co.uk"
|
| 37 |
-
msgstr "http://enshrined.co.uk"
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: 10up, enshrined
|
| 3 |
Tags: svg, sanitize, upload, sanitise, security, svg upload, image, vector, file, graphic, media, mime
|
| 4 |
Requires at least: 4.7
|
| 5 |
-
Tested up to:
|
| 6 |
-
Stable tag: 2.0.
|
| 7 |
Requires PHP: 7.0
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
@@ -66,6 +66,13 @@ They take one argument that must be returned. See below for examples:
|
|
| 66 |
|
| 67 |
== Changelog ==
|
| 68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
= 2.0.1 - 2022-04-19 =
|
| 70 |
* **Changed:** Documentation updates (props [@jeffpaul](https://github.com/jeffpaul), [@peterwilsoncc](https://github.com/peterwilsoncc)).
|
| 71 |
* **Fixed:** Ensure our height and width attributes are set before using them (props [@dkotter](https://github.com/dkotter), [@r8r](https://github.com/r8r), [@jerturowetz](https://github.com/jerturowetz), [@cadic](https://github.com/cadic)).
|
| 2 |
Contributors: 10up, enshrined
|
| 3 |
Tags: svg, sanitize, upload, sanitise, security, svg upload, image, vector, file, graphic, media, mime
|
| 4 |
Requires at least: 4.7
|
| 5 |
+
Tested up to: 6.0
|
| 6 |
+
Stable tag: 2.0.2
|
| 7 |
Requires PHP: 7.0
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 66 |
|
| 67 |
== Changelog ==
|
| 68 |
|
| 69 |
+
= 2.0.2 - 2022-06-27 =
|
| 70 |
+
* **Added:** Dependency security scanning (props [@jeffpaul](https://github.com/jeffpaul) via [#60](https://github.com/10up/safe-svg/pull/60)).
|
| 71 |
+
* **Added:** End-to-end testing with Cypress (props [@iamdharmesh](https://github.com/iamdharmesh) via [#64](https://github.com/10up/safe-svg/pull/64)).
|
| 72 |
+
* **Changed:** Bump WordPress version "tested up to" 6.0 (props [@dkotter](https://github.com/dkotter) via [#65](https://github.com/10up/Ad-Refresh-Control/issues/65)).
|
| 73 |
+
* **Removed:** Redundant premium version upgrade link (props [@ocean90](https://github.com/ocean90), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#61](https://github.com/10up/safe-svg/pull/61)).
|
| 74 |
+
* **Removed:** Unneeded admin CSS fix for featured images (props [@AdamWills](https://github.com/AdamWills), [@dkotter](https://github.com/dkotter), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#63](https://github.com/10up/safe-svg/pull/63)).
|
| 75 |
+
|
| 76 |
= 2.0.1 - 2022-04-19 =
|
| 77 |
* **Changed:** Documentation updates (props [@jeffpaul](https://github.com/jeffpaul), [@peterwilsoncc](https://github.com/peterwilsoncc)).
|
| 78 |
* **Fixed:** Ensure our height and width attributes are set before using them (props [@dkotter](https://github.com/dkotter), [@r8r](https://github.com/r8r), [@jerturowetz](https://github.com/jerturowetz), [@cadic](https://github.com/cadic)).
|
safe-svg.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Safe SVG
|
| 4 |
* Plugin URI: https://wordpress.org/plugins/safe-svg/
|
| 5 |
* Description: Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website
|
| 6 |
-
* Version: 2.0.
|
| 7 |
* Requires at least: 4.7
|
| 8 |
* Requires PHP: 7.0
|
| 9 |
* Author: 10up
|
|
@@ -76,7 +76,6 @@ if ( ! class_exists( 'safe_svg' ) ) {
|
|
| 76 |
add_action( 'admin_enqueue_scripts', array( $this, 'load_custom_admin_style' ) );
|
| 77 |
add_action( 'get_image_tag', array( $this, 'get_image_tag_override' ), 10, 6 );
|
| 78 |
add_filter( 'wp_generate_attachment_metadata', array( $this, 'skip_svg_regeneration' ), 10, 2 );
|
| 79 |
-
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_upgrade_link' ) );
|
| 80 |
add_filter( 'wp_get_attachment_metadata', array( $this, 'metadata_error_fix' ), 10, 2 );
|
| 81 |
add_filter( 'wp_calculate_image_srcset_meta', array( $this, 'disable_srcset' ), 10, 4 );
|
| 82 |
}
|
|
@@ -426,21 +425,6 @@ if ( ! class_exists( 'safe_svg' ) ) {
|
|
| 426 |
return $metadata;
|
| 427 |
}
|
| 428 |
|
| 429 |
-
/**
|
| 430 |
-
* Add in an upgrade link for Safe SVG
|
| 431 |
-
*
|
| 432 |
-
* @param $links
|
| 433 |
-
*
|
| 434 |
-
* @return array
|
| 435 |
-
*/
|
| 436 |
-
function add_upgrade_link( $links ) {
|
| 437 |
-
$mylinks = array(
|
| 438 |
-
'<a target="_blank" style="color:#3db634;" href="https://wpsvg.com/?utm_source=plugin-list&utm_medium=upgrade-link&utm_campaign=plugin-list&utm_content=action-link">Upgrade</a>',
|
| 439 |
-
);
|
| 440 |
-
|
| 441 |
-
return array_merge( $links, $mylinks );
|
| 442 |
-
}
|
| 443 |
-
|
| 444 |
/**
|
| 445 |
* Filters the attachment meta data.
|
| 446 |
*
|
| 3 |
* Plugin Name: Safe SVG
|
| 4 |
* Plugin URI: https://wordpress.org/plugins/safe-svg/
|
| 5 |
* Description: Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website
|
| 6 |
+
* Version: 2.0.2
|
| 7 |
* Requires at least: 4.7
|
| 8 |
* Requires PHP: 7.0
|
| 9 |
* Author: 10up
|
| 76 |
add_action( 'admin_enqueue_scripts', array( $this, 'load_custom_admin_style' ) );
|
| 77 |
add_action( 'get_image_tag', array( $this, 'get_image_tag_override' ), 10, 6 );
|
| 78 |
add_filter( 'wp_generate_attachment_metadata', array( $this, 'skip_svg_regeneration' ), 10, 2 );
|
|
|
|
| 79 |
add_filter( 'wp_get_attachment_metadata', array( $this, 'metadata_error_fix' ), 10, 2 );
|
| 80 |
add_filter( 'wp_calculate_image_srcset_meta', array( $this, 'disable_srcset' ), 10, 4 );
|
| 81 |
}
|
| 425 |
return $metadata;
|
| 426 |
}
|
| 427 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 428 |
/**
|
| 429 |
* Filters the attachment meta data.
|
| 430 |
*
|
vendor/autoload.php
CHANGED
|
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
|
| 9 |
|
| 10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 11 |
|
| 12 |
-
return
|
| 9 |
|
| 10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 11 |
|
| 12 |
+
return ComposerAutoloaderInite6369ee01de87c9996b1c2a1cd9470c9::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
|
@@ -28,7 +28,7 @@ class InstalledVersions
|
|
| 28 |
{
|
| 29 |
/**
|
| 30 |
* @var mixed[]|null
|
| 31 |
-
* @psalm-var array{root: array{name: string,
|
| 32 |
*/
|
| 33 |
private static $installed;
|
| 34 |
|
|
@@ -39,7 +39,7 @@ class InstalledVersions
|
|
| 39 |
|
| 40 |
/**
|
| 41 |
* @var array[]
|
| 42 |
-
* @psalm-var array<string, array{root: array{name: string,
|
| 43 |
*/
|
| 44 |
private static $installedByVendor = array();
|
| 45 |
|
|
@@ -243,7 +243,7 @@ class InstalledVersions
|
|
| 243 |
|
| 244 |
/**
|
| 245 |
* @return array
|
| 246 |
-
* @psalm-return array{name: string,
|
| 247 |
*/
|
| 248 |
public static function getRootPackage()
|
| 249 |
{
|
|
@@ -257,7 +257,7 @@ class InstalledVersions
|
|
| 257 |
*
|
| 258 |
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
| 259 |
* @return array[]
|
| 260 |
-
* @psalm-return array{root: array{name: string,
|
| 261 |
*/
|
| 262 |
public static function getRawData()
|
| 263 |
{
|
|
@@ -280,7 +280,7 @@ class InstalledVersions
|
|
| 280 |
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
| 281 |
*
|
| 282 |
* @return array[]
|
| 283 |
-
* @psalm-return list<array{root: array{name: string,
|
| 284 |
*/
|
| 285 |
public static function getAllRawData()
|
| 286 |
{
|
|
@@ -303,7 +303,7 @@ class InstalledVersions
|
|
| 303 |
* @param array[] $data A vendor/composer/installed.php data set
|
| 304 |
* @return void
|
| 305 |
*
|
| 306 |
-
* @psalm-param array{root: array{name: string,
|
| 307 |
*/
|
| 308 |
public static function reload($data)
|
| 309 |
{
|
|
@@ -313,7 +313,7 @@ class InstalledVersions
|
|
| 313 |
|
| 314 |
/**
|
| 315 |
* @return array[]
|
| 316 |
-
* @psalm-return list<array{root: array{name: string,
|
| 317 |
*/
|
| 318 |
private static function getInstalled()
|
| 319 |
{
|
| 28 |
{
|
| 29 |
/**
|
| 30 |
* @var mixed[]|null
|
| 31 |
+
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
|
| 32 |
*/
|
| 33 |
private static $installed;
|
| 34 |
|
| 39 |
|
| 40 |
/**
|
| 41 |
* @var array[]
|
| 42 |
+
* @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
| 43 |
*/
|
| 44 |
private static $installedByVendor = array();
|
| 45 |
|
| 243 |
|
| 244 |
/**
|
| 245 |
* @return array
|
| 246 |
+
* @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
|
| 247 |
*/
|
| 248 |
public static function getRootPackage()
|
| 249 |
{
|
| 257 |
*
|
| 258 |
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
| 259 |
* @return array[]
|
| 260 |
+
* @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
|
| 261 |
*/
|
| 262 |
public static function getRawData()
|
| 263 |
{
|
| 280 |
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
| 281 |
*
|
| 282 |
* @return array[]
|
| 283 |
+
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
| 284 |
*/
|
| 285 |
public static function getAllRawData()
|
| 286 |
{
|
| 303 |
* @param array[] $data A vendor/composer/installed.php data set
|
| 304 |
* @return void
|
| 305 |
*
|
| 306 |
+
* @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
|
| 307 |
*/
|
| 308 |
public static function reload($data)
|
| 309 |
{
|
| 313 |
|
| 314 |
/**
|
| 315 |
* @return array[]
|
| 316 |
+
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
| 317 |
*/
|
| 318 |
private static function getInstalled()
|
| 319 |
{
|
vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -24,12 +24,12 @@ class ComposerAutoloaderInitaab37f24cfa6fb727890885ea1b25d41
|
|
| 24 |
|
| 25 |
require __DIR__ . '/platform_check.php';
|
| 26 |
|
| 27 |
-
spl_autoload_register(array('
|
| 28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
| 29 |
-
spl_autoload_unregister(array('
|
| 30 |
|
| 31 |
require __DIR__ . '/autoload_static.php';
|
| 32 |
-
call_user_func(\Composer\Autoload\
|
| 33 |
|
| 34 |
$loader->register(true);
|
| 35 |
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInite6369ee01de87c9996b1c2a1cd9470c9
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 24 |
|
| 25 |
require __DIR__ . '/platform_check.php';
|
| 26 |
|
| 27 |
+
spl_autoload_register(array('ComposerAutoloaderInite6369ee01de87c9996b1c2a1cd9470c9', 'loadClassLoader'), true, true);
|
| 28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
| 29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInite6369ee01de87c9996b1c2a1cd9470c9', 'loadClassLoader'));
|
| 30 |
|
| 31 |
require __DIR__ . '/autoload_static.php';
|
| 32 |
+
call_user_func(\Composer\Autoload\ComposerStaticInite6369ee01de87c9996b1c2a1cd9470c9::getInitializer($loader));
|
| 33 |
|
| 34 |
$loader->register(true);
|
| 35 |
|
vendor/composer/autoload_static.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
-
class
|
| 8 |
{
|
| 9 |
public static $prefixLengthsPsr4 = array (
|
| 10 |
'e' =>
|
|
@@ -27,9 +27,9 @@ class ComposerStaticInitaab37f24cfa6fb727890885ea1b25d41
|
|
| 27 |
public static function getInitializer(ClassLoader $loader)
|
| 28 |
{
|
| 29 |
return \Closure::bind(function () use ($loader) {
|
| 30 |
-
$loader->prefixLengthsPsr4 =
|
| 31 |
-
$loader->prefixDirsPsr4 =
|
| 32 |
-
$loader->classMap =
|
| 33 |
|
| 34 |
}, null, ClassLoader::class);
|
| 35 |
}
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
+
class ComposerStaticInite6369ee01de87c9996b1c2a1cd9470c9
|
| 8 |
{
|
| 9 |
public static $prefixLengthsPsr4 = array (
|
| 10 |
'e' =>
|
| 27 |
public static function getInitializer(ClassLoader $loader)
|
| 28 |
{
|
| 29 |
return \Closure::bind(function () use ($loader) {
|
| 30 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInite6369ee01de87c9996b1c2a1cd9470c9::$prefixLengthsPsr4;
|
| 31 |
+
$loader->prefixDirsPsr4 = ComposerStaticInite6369ee01de87c9996b1c2a1cd9470c9::$prefixDirsPsr4;
|
| 32 |
+
$loader->classMap = ComposerStaticInite6369ee01de87c9996b1c2a1cd9470c9::$classMap;
|
| 33 |
|
| 34 |
}, null, ClassLoader::class);
|
| 35 |
}
|
vendor/composer/installed.php
CHANGED
|
@@ -1,31 +1,31 @@
|
|
| 1 |
<?php return array(
|
| 2 |
'root' => array(
|
| 3 |
-
'
|
| 4 |
-
'
|
|
|
|
|
|
|
| 5 |
'type' => 'wordpress-plugin',
|
| 6 |
'install_path' => __DIR__ . '/../../',
|
| 7 |
'aliases' => array(),
|
| 8 |
-
'reference' => 'd82abb46925ce2656d93ba595c58705183af3cbe',
|
| 9 |
-
'name' => 'darylldoyle/safe-svg',
|
| 10 |
'dev' => true,
|
| 11 |
),
|
| 12 |
'versions' => array(
|
| 13 |
'darylldoyle/safe-svg' => array(
|
| 14 |
-
'pretty_version' => '2.0.
|
| 15 |
-
'version' => '2.0.
|
|
|
|
| 16 |
'type' => 'wordpress-plugin',
|
| 17 |
'install_path' => __DIR__ . '/../../',
|
| 18 |
'aliases' => array(),
|
| 19 |
-
'reference' => 'd82abb46925ce2656d93ba595c58705183af3cbe',
|
| 20 |
'dev_requirement' => false,
|
| 21 |
),
|
| 22 |
'enshrined/svg-sanitize' => array(
|
| 23 |
'pretty_version' => '0.15.4',
|
| 24 |
'version' => '0.15.4.0',
|
|
|
|
| 25 |
'type' => 'library',
|
| 26 |
'install_path' => __DIR__ . '/../enshrined/svg-sanitize',
|
| 27 |
'aliases' => array(),
|
| 28 |
-
'reference' => 'e50b83a2f1f296ca61394fe88fbfe3e896a84cf4',
|
| 29 |
'dev_requirement' => false,
|
| 30 |
),
|
| 31 |
),
|
| 1 |
<?php return array(
|
| 2 |
'root' => array(
|
| 3 |
+
'name' => 'darylldoyle/safe-svg',
|
| 4 |
+
'pretty_version' => '2.0.2',
|
| 5 |
+
'version' => '2.0.2.0',
|
| 6 |
+
'reference' => 'c603e4b5592ac46c71c846d6e81924f1a9f0a761',
|
| 7 |
'type' => 'wordpress-plugin',
|
| 8 |
'install_path' => __DIR__ . '/../../',
|
| 9 |
'aliases' => array(),
|
|
|
|
|
|
|
| 10 |
'dev' => true,
|
| 11 |
),
|
| 12 |
'versions' => array(
|
| 13 |
'darylldoyle/safe-svg' => array(
|
| 14 |
+
'pretty_version' => '2.0.2',
|
| 15 |
+
'version' => '2.0.2.0',
|
| 16 |
+
'reference' => 'c603e4b5592ac46c71c846d6e81924f1a9f0a761',
|
| 17 |
'type' => 'wordpress-plugin',
|
| 18 |
'install_path' => __DIR__ . '/../../',
|
| 19 |
'aliases' => array(),
|
|
|
|
| 20 |
'dev_requirement' => false,
|
| 21 |
),
|
| 22 |
'enshrined/svg-sanitize' => array(
|
| 23 |
'pretty_version' => '0.15.4',
|
| 24 |
'version' => '0.15.4.0',
|
| 25 |
+
'reference' => 'e50b83a2f1f296ca61394fe88fbfe3e896a84cf4',
|
| 26 |
'type' => 'library',
|
| 27 |
'install_path' => __DIR__ . '/../enshrined/svg-sanitize',
|
| 28 |
'aliases' => array(),
|
|
|
|
| 29 |
'dev_requirement' => false,
|
| 30 |
),
|
| 31 |
),
|
