summaryrefslogtreecommitdiff
path: root/test/U_tests.json
diff options
context:
space:
mode:
Diffstat (limited to 'test/U_tests.json')
-rw-r--r--test/U_tests.json12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/U_tests.json b/test/U_tests.json
index e35ff9d..0025565 100644
--- a/test/U_tests.json
+++ b/test/U_tests.json
@@ -207,5 +207,17 @@
"args": ["/foo.html", {"<spam>": {"<spam>": "ham"}}],
"exp": "/foo.html?%3Cspam%3E%5B%3Cspam%3E%5D=ham",
"name": "U() urlencode keys of nested structures"
+ },
+
+ {
+ "args": ["a:javascript:alert('fail');"],
+ "exp": "alert(%27fail%27)%3B",
+ "name": "U() remove schema from path"
+ },
+
+ {
+ "args": ["a:b:c:d:javascript:alert('fail');"],
+ "exp": "alert(%27fail%27)%3B",
+ "name": "U() remove multiple schemes from path"
}
]