From 9c30f984b91797f928ee36abbdfc722cd35067ff Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Sat, 17 Nov 2012 00:44:43 -0800 Subject: [PATCH] maybe I shouldn't just have copied and pasted this code from the corresponding sanity check in chocolate.py --- server-ca/payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-ca/payment.py b/server-ca/payment.py index 4d1ab0ec4..b0a09e20d 100755 --- a/server-ca/payment.py +++ b/server-ca/payment.py @@ -47,7 +47,7 @@ class payment(object): web.header("Content-type", "text/html") if len(session) != 64 or not all(hexdigit(s) for s in session): return "Attempt to process payment for invalid session." - if session not in r or r.hget(self.id, "live") != "True": + if session not in r or r.hget(session, "live") != "True": return "Attempt to process payment for invalid session." if r.hget(session, "state") != "payment": return "Attempt to process payment for session not expecting it."