add test for u+2028/2029 escaping
This commit is contained in:
parent
30bc535e93
commit
5d1e18d0ea
1 changed files with 6 additions and 0 deletions
|
@ -297,6 +297,12 @@ escape_test_() ->
|
|||
<<1, 2, 3, 11, 26, 30, 31>>
|
||||
) =:= <<"\\u0001\\u0002\\u0003\\u000b\\u001a\\u001e\\u001f">>
|
||||
)
|
||||
},
|
||||
{"jsonp protection",
|
||||
?_assert(json_escape(
|
||||
<<226, 128, 168, 226, 128, 169>>
|
||||
) =:= <<"\\u2028\\u2029">>
|
||||
)
|
||||
}
|
||||
].
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue