web: period arg wasn't being preserved
This commit is contained in:
parent
d35792bf3f
commit
0041a3b27a
@ -106,7 +106,9 @@ maintemplate (a,p) r = printf (unlines
|
|||||||
-- another way to get them
|
-- another way to get them
|
||||||
-- a = fromMaybe "" $ queryValue "a" r
|
-- a = fromMaybe "" $ queryValue "a" r
|
||||||
-- p = fromMaybe "" $ queryValue "p" r
|
-- p = fromMaybe "" $ queryValue "p" r
|
||||||
q' = intercalate "&" $ if null a then [] else [(("a="++).urlEncode) a] ++ if null p then [] else [(("p="++).urlEncode) p]
|
q' = intercalate "&" $
|
||||||
|
(if null a then [] else [(("a="++).urlEncode) a]) ++
|
||||||
|
(if null p then [] else [(("p="++).urlEncode) p])
|
||||||
q = if null q' then "" else '?':q'
|
q = if null q' then "" else '?':q'
|
||||||
resetlink | null a && null p = ""
|
resetlink | null a && null p = ""
|
||||||
| otherwise = printf " <a href=%s>reset</a>" u
|
| otherwise = printf " <a href=%s>reset</a>" u
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user