Skip to content

Commit dee1f56

Browse files
committed
Merge branch 'master' into fix/advisory-2
2 parents 355a65d + a9eadeb commit dee1f56

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ You may pass your own whitelist of tags and attributes by using the `Sanitizer::
4040

4141
These methods require that you implement the `enshrined\svgSanitize\data\TagInterface` or `enshrined\svgSanitize\data\AttributeInterface`.
4242

43-
## Remove remote references
43+
## Remove remote references
4444

4545
You have the option to remove attributes that reference remote files, this will stop HTTP leaks but will add an overhead to the sanitizer.
4646

@@ -73,7 +73,8 @@ I've just released a WordPress plugin containing this code so you can sanitize y
7373

7474
## TYPO3
7575

76-
An integration for TYPO3 CMS of this library is available as composer package `t3g/svg-sanitizer` at [https://github.com/TYPO3GmbH/svg_sanitizer](https://github.com/TYPO3GmbH/svg_sanitizer)
76+
This SVG sanitizer library is used per default in the core of TYPO3 v9 and later versions.
77+
See [corresponding changelog entry](https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/9.5.x/Important-94492-IntroduceSVGSanitizer.html) for more details.
7778

7879
## Tests
7980

src/Sanitizer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function sanitize($dirty)
214214
$this->elementReferenceResolver->collect();
215215
$elementsToRemove = $this->elementReferenceResolver->getElementsToRemove();
216216

217-
// Start the cleaning proccess
217+
// Start the cleaning process
218218
$this->startClean($this->xmlDocument->childNodes, $elementsToRemove);
219219

220220
// Save cleaned XML to a variable

src/data/AllowedAttributes.php

+1
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ public static function getAttributes()
270270
'values',
271271
'viewbox',
272272
'visibility',
273+
'vector-effect',
273274
'vert-adv-y',
274275
'vert-origin-x',
275276
'vert-origin-y',

0 commit comments

Comments
 (0)