changeset ffb5c38728a5 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=ffb5c38728a5
description: correctly check JID when creating an anonymous account. Fixes #7116
diffstat:
src/config.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r f0b060381912 -r ffb5c38728a5 src/config.py
--- a/src/config.py Fri Mar 09 08:40:21 2012 +0100
+++ b/src/config.py Fri Mar 09 08:45:47 2012 +0100
@@ -3655,7 +3655,11 @@
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)
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits