From addaaa9242161d2147d5f6b4c8eea75c2c35704c Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Wed, 4 Nov 2009 23:46:16 +0100 Subject: [PATCH] Fix regex used in urisplit. It failed to split the host:port part. --- src/common/xmpp/transports_nb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/xmpp/transports_nb.py b/src/common/xmpp/transports_nb.py index 8f6364c4a..34e200d37 100644 --- a/src/common/xmpp/transports_nb.py +++ b/src/common/xmpp/transports_nb.py @@ -47,7 +47,7 @@ def urisplit(uri): return 443 as default port if proto is https else 80 ''' import re - regex = '(([^:/]+)(://))?([^/]*)(:)*([^/]*)(/?.*)' + regex = '(([^:/]+)(://))?([^:/]*)(:)?([^/]*)(/?.*)' grouped = re.match(regex, uri).groups() proto, host, port, path = grouped[1], grouped[3], grouped[5], grouped[6] if not port: