Open adrianbj opened 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
PS You just got a mention in ProcessWire weekly :) http://www.flamingruby.com/blog/processwire-weekly-47/#3
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