fix #2574 (allow 0x5f in hostnames)

This commit is contained in:
Stefan Bethge 2006-10-16 13:24:09 +00:00
parent 0464ac380f
commit b5d4bb4a1c
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,8 @@ class NamePrep:
prohibiteds = [unichr(n) for n in range(0x00, 0x2c + 1) + prohibiteds = [unichr(n) for n in range(0x00, 0x2c + 1) +
range(0x2e, 0x2f + 1) + range(0x2e, 0x2f + 1) +
range(0x3a, 0x40 + 1) + range(0x3a, 0x40 + 1) +
range(0x5b, 0x60 + 1) + range(0x5b, 0x5e + 1) +
range(0x60, 0x60 + 1) +
range(0x7b, 0x7f + 1) ] range(0x7b, 0x7f + 1) ]
def prepare(self, string): def prepare(self, string):

View File

@ -1894,7 +1894,6 @@ class Interface:
if not gajim.config.get_per('accounts', account, 'is_zeroconf'): if not gajim.config.get_per('accounts', account, 'is_zeroconf'):
gajim.connections[account] = common.connection.Connection(account) gajim.connections[account] = common.connection.Connection(account)
# gtk hooks
# gtk hooks # gtk hooks
gtk.about_dialog_set_email_hook(self.on_launch_browser_mailer, 'mail') gtk.about_dialog_set_email_hook(self.on_launch_browser_mailer, 'mail')
gtk.about_dialog_set_url_hook(self.on_launch_browser_mailer, 'url') gtk.about_dialog_set_url_hook(self.on_launch_browser_mailer, 'url')