From 9f4753cc068c956a59d20402640b5d99a0a3272f Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 31 Jan 2006 21:13:46 +0000 Subject: [PATCH] do not add http:// in urls. fixes #1493 --- src/common/helpers.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/helpers.py b/src/common/helpers.py index f3e15f30a..1b35204e5 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -356,10 +356,7 @@ def launch_browser_mailer(kind, uri): pass else: - if kind == 'url' and not\ - (uri.startswith('http://') or uri.startswith('https://')): - uri = 'http://' + uri - elif kind == 'mail' and not uri.startswith('mailto:'): + if kind == 'mail' and not uri.startswith('mailto:'): uri = 'mailto:' + uri if gajim.config.get('openwith') == 'gnome-open':