correctly check JID when creating an anonymous account. Fixes #7116

This commit is contained in:
Yann Leboulanger 2012-03-09 08:45:47 +01:00
parent fdb63bcd0c
commit 2501cf346c
1 changed files with 5 additions and 1 deletions

View File

@ -3655,7 +3655,11 @@ class AccountCreationWizardWindow:
password = self.xml.get_object('password_entry').get_text().decode(
'utf-8')
jid = username + '@' + server
if anonymous:
jid = ''
else:
jid = username + '@'
jid += server
# check if jid is conform to RFC and stringprep it
try:
jid = helpers.parse_jid(jid)