Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Add new test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalopin committed Nov 18, 2018
1 parent 1f48230 commit 11c444f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/FullSanitizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,14 @@ public function provideFixtures(): array
'<<iframe src="javascript:evil"/>iframe src="javascript:evil"/>',
'<iframe>iframe src&#61;&#34;javascript:evil&#34;/&gt;</iframe>',
],
[
'<scr<script>ipt>alert(1)</script>',
'',
],
[
'<scr<a>ipt>alert(1)</script>',
'<a>ipt&gt;alert(1)</a>',
],

/*
* Styles
Expand Down
8 changes: 8 additions & 0 deletions tests/SimpleSanitizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,14 @@ public function provideFixtures(): array
'"><script>...</script><input value="',
'&#34;&gt;',
],
[
'<scr<script>ipt>alert(1)</script>',
'',
],
[
'<scr<a>ipt>alert(1)</script>',
'<a>ipt&gt;alert(1)</a>',
],

/*
* Styles
Expand Down

0 comments on commit 11c444f

Please sign in to comment.