alnorris / SVG-Sanitizer

Whitelist-based PHP SVG sanitizer.
MIT License
22 stars 5 forks source link

Some iteration mistakes and missing attributes #2

Open adrianbj opened 9 years ago

adrianbj commented 9 years ago

Hi Alister,

I wanted to say thanks for this, it has come in very handy. I did however come across some iteration mistakes and also a few missing tags/attributes in the whitelist.

I don't really have a PR for you, but you might want to take a look at the modified version I put together for use in the ProcessWire CMS (https://processwire.com/) and grab the changes from there: https://github.com/adrianbj/FileValidatorSvgSanitizer/blob/master/svgsanitizer/SvgSanitizer.php https://github.com/adrianbj/FileValidatorSvgSanitizer/blob/master/whitelist.json

adrianbj commented 9 years ago

PS You just got a mention in ProcessWire weekly :) http://www.flamingruby.com/blog/processwire-weekly-47/#3