aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-03-23 06:34:33 +0000
committerSean Whitton <spwhitton@spwhitton.name>2015-03-23 06:34:33 +0000
commitbf55e5144004be26ec533de7ace57840329142e8 (patch)
treeeba1f6c517d1508a34a46eab9261469b818ba272
parent5301858c1772debf4eff3f70ba589a9435b1516c (diff)
downloadsariulclocks-bf55e5144004be26ec533de7ace57840329142e8.tar.gz
comment: PGR not an option atm
-rw-r--r--src/sariulccgi.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sariulccgi.hs b/src/sariulccgi.hs
index e89a940..dab96b1 100644
--- a/src/sariulccgi.hs
+++ b/src/sariulccgi.hs
@@ -162,7 +162,12 @@ cgiMain = do
1 -> CountUpClock }
when passwordPasses $ modifyScores (updateScore (fromJust cookieClass) points timeWasted)
- -- TODO: use POST,REDIRECT,GET https://stackoverflow.com/questions/570015/how-do-i-reload-a-page-without-a-postdata-warning-in-javascript/570069#570069
+ -- It would be good to use POST,REDIRECT,GET
+ -- <http://stackoverflow.com/a/570069> here. However, you can't
+ -- reliably set cookies during a 302 redirect: a lot of browsers
+ -- cough on it. So we'd have to change lots of things about our
+ -- application to make this work.
+
selfURL <- liftM uriPath requestURI
page <- makePage