Commit e1b80468 authored by Łukasz Nowak's avatar Łukasz Nowak

Encode to hex.

Data can be really complex string, which can be bad for tag.
parent f8478d83
......@@ -221,7 +221,7 @@ def BrowserID_checkUserExistence(self):
except KeyError:
return False
user = user_dict['login']
tag = '%s_user_creation_in_progress' % user
tag = '%s_user_creation_in_progress' % user.encode('hex')
person_list = getUserByLogin(self.getPortalObject(), user)
if len(person_list) == 0:
if self.getPortalObject().portal_activities.countMessageWithTag(tag) == 0:
......
393
\ No newline at end of file
394
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment