From 2501cf346c6b5222c6c8783ac26b66d88d9cabf7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 9 Mar 2012 08:45:47 +0100 Subject: [PATCH] correctly check JID when creating an anonymous account. Fixes #7116 --- src/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/config.py b/src/config.py index 8cf06e3a6..7851b228c 100644 --- a/src/config.py +++ b/src/config.py @@ -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)