Skip to content

Commit

Permalink
not sure why I had to change this test yesterday to make it work, but…
Browse files Browse the repository at this point in the history
… it works fine again today.
  • Loading branch information
ikirudennis committed Sep 12, 2017
1 parent 5fef033 commit 94224e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_textile.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def test_sanitize():
expect = textile.Textile().parse(test, sanitize=True)
assert result == expect

test = """<p onclick="alert('evil');">a paragraph of evil text</p>"""
result = '<p>a paragraph of evil text</p>'
test = """<p style="width: expression(alert('evil'));">a paragraph of evil text</p>"""
result = '<p style="">a paragraph of evil text</p>'
expect = textile.Textile().parse(test, sanitize=True)
assert result == expect

Expand Down

0 comments on commit 94224e1

Please sign in to comment.