Correctly handle invalid escapes in routes
based on 0a5ead31c9fbd7b153c521c7f9d3df7bf826ce6c
This commit is contained in:
parent
bcc61e42a9
commit
9128d4e60a
3 changed files with 23 additions and 1 deletions
|
|
@ -145,6 +145,19 @@ o.spec("route", function() {
|
|||
o(root.firstChild.nodeValue).equals('{"ö":"ö"} /ö?ö=ö')
|
||||
})
|
||||
|
||||
o("resolves to route w/ matching invalid escape", function() {
|
||||
$window.location.href = prefix + "/%C3%B6abc%def"
|
||||
route(root, "/öabc%def", {
|
||||
"/öabc%def" : {
|
||||
view: lock(function() {
|
||||
return route.get()
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
o(root.firstChild.nodeValue).equals("/öabc%def")
|
||||
})
|
||||
|
||||
o("handles parameterized route", function() {
|
||||
$window.location.href = prefix + "/test/x"
|
||||
route(root, "/test/:a", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue