quixote session.py,1.56,1.57
Greg Ward <gward-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]>
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/cvs/quixote
In directory hewson:/tmp/cvs-serv5639
Modified Files:
session.py
Log Message:
Fix bug introduced when I rewrote session management, which was spotted
at the time by Jon Corbet and again recently by Mikhail Sobolev (oops).
Index: session.py
===================================================================
RCS file: /home/cvs/quixote/session.py,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- session.py 9 Aug 2002 01:42:19 -0000 1.56
+++ session.py 9 Oct 2002 18:38:57 -0000 1.57
@@ -293,7 +293,8 @@
# responsible for revoking the session cookie. Yuck.
raise SessionError(session_id=id)
if (config.check_session_addr and
- session.remote_address != request.get_environ("REMOTE_ADDR")):
+ session.get_remote_address() !=
+ request.get_environ("REMOTE_ADDR")):
raise SessionError("Remote IP address does not match the "
"IP address that created the session",
session_id=id)