changeset 5475:2ce0e1c469aa

createTicket: do not use sid in tickets if session is new (anon user gets a new session / session name all the time)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 01 Feb 2010 15:31:27 +0100
parents 0eab7483b474
children 575601b3117d d3e1bae851ef
files MoinMoin/wikiutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Mon Feb 01 01:41:10 2010 +0100
+++ b/MoinMoin/wikiutil.py	Mon Feb 01 15:31:27 2010 +0100
@@ -2452,7 +2452,7 @@
     digest = sha.new(request.cfg.secrets)
     digest.update(ticket)
 
-    if request.session:
+    if request.session and not request.session.is_new:
         sid = request.session.name
     else:
         sid = 'None'