From b5d4bb4a1cebd6893970759298c532791a462af0 Mon Sep 17 00:00:00 2001 From: Stefan Bethge Date: Mon, 16 Oct 2006 13:24:09 +0000 Subject: [PATCH] fix #2574 (allow 0x5f in hostnames) --- src/common/xmpp_stringprep.py | 3 ++- src/gajim.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/xmpp_stringprep.py b/src/common/xmpp_stringprep.py index f8bad61b4..f81ed9f2e 100644 --- a/src/common/xmpp_stringprep.py +++ b/src/common/xmpp_stringprep.py @@ -185,7 +185,8 @@ class NamePrep: prohibiteds = [unichr(n) for n in range(0x00, 0x2c + 1) + range(0x2e, 0x2f + 1) + range(0x3a, 0x40 + 1) + - range(0x5b, 0x60 + 1) + + range(0x5b, 0x5e + 1) + + range(0x60, 0x60 + 1) + range(0x7b, 0x7f + 1) ] def prepare(self, string): diff --git a/src/gajim.py b/src/gajim.py index f2220e967..ec444049e 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1894,7 +1894,6 @@ class Interface: if not gajim.config.get_per('accounts', account, 'is_zeroconf'): gajim.connections[account] = common.connection.Connection(account) - # gtk hooks # gtk hooks gtk.about_dialog_set_email_hook(self.on_launch_browser_mailer, 'mail') gtk.about_dialog_set_url_hook(self.on_launch_browser_mailer, 'url')