Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svg: use higher specifity regexp for checks #128

Merged
merged 6 commits into from Nov 14, 2018

Conversation

ZaneHannanAU
Copy link
Contributor

Based on http://dassur.ma/things/regexp-quote/#bonus-html-tags

Essentially for if <svg onclick='alert(">")'>. A gigantic increase in regex complexity though...

Based on http://dassur.ma/things/regexp-quote/#bonus-html-tags

Essentially for if `<svg onclick='alert(">")'>`. A gigantic increase in complexity though...
Used for possible HTML stuff.
@netroy
Copy link
Member

netroy commented Oct 4, 2018

@ZaneHannanAU can you please also add a failing test svg in specs/images/invalid

@netroy netroy self-requested a review October 4, 2018 12:24
@ZaneHannanAU
Copy link
Contributor Author

... I'll try.

should fail; but can (possibly) pass.
Unescaped quotes within image.
@ZaneHannanAU
Copy link
Contributor Author

Alright; I think ... that should do it?

@ZaneHannanAU
Copy link
Contributor Author

Yeah ... turns out backslashes aren't considered in xml/html.

@netroy netroy merged commit bce261d into image-size:master Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants