uri-encode capture values in the generated javascript code for servant-jquery
This commit is contained in:
parent
06d8c8005a
commit
e3af6a6af3
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ segmentToStr :: Segment -> Bool -> String
|
||||||
segmentToStr (Static s) notTheEnd =
|
segmentToStr (Static s) notTheEnd =
|
||||||
if notTheEnd then s else s ++ "'"
|
if notTheEnd then s else s ++ "'"
|
||||||
segmentToStr (Cap s) notTheEnd =
|
segmentToStr (Cap s) notTheEnd =
|
||||||
"' + " ++ s ++ if notTheEnd then " + '" else ""
|
"' + encodeURIComponent(" ++ s ++ if notTheEnd then ") + '" else ")"
|
||||||
|
|
||||||
type Path = [Segment]
|
type Path = [Segment]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue