We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 231a098 commit f56f385Copy full SHA for f56f385
roundup/cgi/client.py
@@ -50,7 +50,7 @@ class SysCallError(Exception):
50
from email.mime.multipart import MIMEMultipart
51
import roundup.anypy.email_
52
53
-from roundup.anypy.strings import s2b, uchr
+from roundup.anypy.strings import s2b, b2s, uchr
54
55
def initialiseSecurity(security):
56
'''Create some Permissions and Roles on the security object
@@ -178,7 +178,7 @@ def _gen_sid(self):
178
""" generate a unique session key """
179
while 1:
180
s = '%s%s'%(time.time(), random.random())
181
- s = binascii.b2a_base64(s).strip()
+ s = b2s(binascii.b2a_base64(s2b(s)).strip())
182
if not self.session_db.exists(s):
183
break
184
0 commit comments