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

Sanitize removes negative value in style #37

Closed
ghost opened this issue Mar 30, 2015 · 3 comments
Closed

Sanitize removes negative value in style #37

ghost opened this issue Mar 30, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 30, 2015

Sanitize removes a style like "margin:-4px".
This test fails

input = '<p style="color: #000; margin: -9px;"></p>'
assert_equal input, white_list_sanitize(input, attributes: %w(style))
@ghost
Copy link
Author

ghost commented Mar 31, 2015

The problem is in loofah. added a fix there and sent a pull request
flavorjones/loofah#85

@kaspth
Copy link
Contributor

kaspth commented Mar 31, 2015

Nice find and thanks for working on this, 👍.

@kaspth
Copy link
Contributor

kaspth commented May 27, 2015

Fixed in Loofah v2.0.2 via flavorjones/loofah#85

@kaspth kaspth closed this as completed May 27, 2015
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

No branches or pull requests

1 participant