From 4681633b941c889620c41cfea25cf87ef9ad1d67 Mon Sep 17 00:00:00 2001 From: Julien Tessier Date: Mon, 1 Apr 2019 19:24:23 +0400 Subject: [PATCH] Update svg-sanitize closes #12, closes #6 --- composer.json | 2 +- composer.lock | 16 +- paquet.xml | 8 +- vendor/composer/ClassLoader.php | 4 +- vendor/composer/installed.json | 14 +- vendor/enshrined/svg-sanitize/.travis.yml | 6 +- vendor/enshrined/svg-sanitize/README.md | 16 + vendor/enshrined/svg-sanitize/composer.json | 2 +- vendor/enshrined/svg-sanitize/composer.lock | 1275 +++++++++++++---- .../enshrined/svg-sanitize/phpunit.xml.dist | 6 + .../enshrined/svg-sanitize/src/Sanitizer.php | 161 ++- .../src/data/AllowedAttributes.php | 95 +- .../svg-sanitize/src/data/AllowedTags.php | 240 +++- .../svg-sanitize/src/svg-scanner.php | 187 +++ .../tests/AllowedAttributesTest.php | 3 +- .../svg-sanitize/tests/AllowedTagsTest.php | 3 +- .../svg-sanitize/tests/SanitizerTest.php | 40 +- .../svg-sanitize/tests/data/useClean.svg | 4 + .../svg-sanitize/tests/data/useTest.svg | 5 + 19 files changed, 1661 insertions(+), 426 deletions(-) create mode 100644 vendor/enshrined/svg-sanitize/src/svg-scanner.php create mode 100644 vendor/enshrined/svg-sanitize/tests/data/useClean.svg create mode 100644 vendor/enshrined/svg-sanitize/tests/data/useTest.svg diff --git a/composer.json b/composer.json index 32084d5..2cb4930 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "spip/logo_svg", "require": { "php": ">=5.3.3", - "enshrined/svg-sanitize": "0.7.2" + "enshrined/svg-sanitize": "0.10.0" }, "minimum-stability": "stable" } diff --git a/composer.lock b/composer.lock index 873b5e3..2eee07c 100644 --- a/composer.lock +++ b/composer.lock @@ -1,28 +1,28 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6bddb8311f5275b3f50fa4445261fe5e", + "content-hash": "abb79f488da716bb48d85154413267e8", "packages": [ { "name": "enshrined/svg-sanitize", - "version": "0.7.2", + "version": "0.10.0", "source": { "type": "git", "url": "https://github.com/darylldoyle/svg-sanitizer.git", - "reference": "2768fb1c8868d97145e8f2a5457caf590c8d2062" + "reference": "5344d8511e494adf160f71f4b34024d3a3c66c82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/darylldoyle/svg-sanitizer/zipball/2768fb1c8868d97145e8f2a5457caf590c8d2062", - "reference": "2768fb1c8868d97145e8f2a5457caf590c8d2062", + "url": "https://api.github.com/repos/darylldoyle/svg-sanitizer/zipball/5344d8511e494adf160f71f4b34024d3a3c66c82", + "reference": "5344d8511e494adf160f71f4b34024d3a3c66c82", "shasum": "" }, "require-dev": { "codeclimate/php-test-reporter": "^0.1.2", - "phpunit/phpunit": "^4.7" + "phpunit/phpunit": "^6" }, "type": "library", "autoload": { @@ -41,7 +41,7 @@ } ], "description": "An SVG sanitizer for PHP", - "time": "2017-08-31T00:10:18+00:00" + "time": "2019-01-11T12:31:32+00:00" } ], "packages-dev": [], diff --git a/paquet.xml b/paquet.xml index 9e5af2b..09eec24 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,9 +1,9 @@ @@ -11,11 +11,11 @@ Logo SVG Collectif SPIP - Julien Tessier, Agence Cahri + Julien Tessier, Agence Cari GNU/GPL - +