This repository has been archived by the owner on Jul 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from yahoo/Fixed-yc-for-compatibility
Fixed yc for comment start state and null handling
- Loading branch information
Showing
4 changed files
with
68 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,7 +197,10 @@ Authors: Nera Liu <[email protected]> | |
'foo--! ', | ||
'[if IE] ', | ||
'foo- ', | ||
'foo- ']); | ||
'foo- ', | ||
' ><script>alert(1)</script>', | ||
'---------- ><script>alert(1)</script>', | ||
'--\uFFFD>']); | ||
}); | ||
|
||
it('filter yav-single-quoted state transition test', function() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,7 +177,10 @@ Authors: Nera Liu <[email protected]> | |
'foo--! ', | ||
'[if IE] ', | ||
'foo- ', | ||
'foo- ']); | ||
'foo- ', | ||
' ><script>alert(1)</script>', | ||
'---------- ><script>alert(1)</script>', | ||
'--\uFFFD>']); | ||
}); | ||
|
||
|
||
|
@@ -261,7 +264,10 @@ Authors: Nera Liu <[email protected]> | |
'foo--! ', | ||
'%5Bif%20IE%5D', | ||
'foo- ', | ||
'foo- ']); | ||
'foo- ', | ||
'%3E%3Cscript%3Ealert(1)%3C/script%3E', | ||
'----------%3E%3Cscript%3Ealert(1)%3C/script%3E', | ||
'--%00%3E']); | ||
testutils.test_yufull(filter.uriInHTMLComment, ['http://[2001:0db8:85a3:0000:0000:8a2e:0370:7334] ']); | ||
}); | ||
|
||
|
@@ -308,7 +314,10 @@ Authors: Nera Liu <[email protected]> | |
'foo--! ', | ||
'%5Bif%20IE%5D', | ||
'foo- ', | ||
'foo- ']); | ||
'foo- ', | ||
'%3E%3Cscript%3Ealert(1)%3C/script%3E', | ||
'----------%3E%3Cscript%3Ealert(1)%3C/script%3E', | ||
'--%00%3E']); | ||
testutils.test_yu(filter.uriPathInHTMLComment); | ||
}); | ||
|
||
|
@@ -352,7 +361,10 @@ Authors: Nera Liu <[email protected]> | |
'foo--! ', | ||
'%5Bif%20IE%5D', | ||
'foo- ', | ||
'foo- ']); | ||
'foo- ', | ||
'%3E%3Cscript%3Ealert(1)%3C%2Fscript%3E', | ||
'----------%3E%3Cscript%3Ealert(1)%3C%2Fscript%3E', | ||
'--%00%3E']); | ||
testutils.test_yuc(filter.uriComponentInHTMLComment); | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters