do not add http:// in urls. fixes #1493
This commit is contained in:
parent
475ebb8879
commit
9f4753cc06
|
@ -356,10 +356,7 @@ def launch_browser_mailer(kind, uri):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if kind == 'url' and not\
|
if kind == 'mail' and not uri.startswith('mailto:'):
|
||||||
(uri.startswith('http://') or uri.startswith('https://')):
|
|
||||||
uri = 'http://' + uri
|
|
||||||
elif kind == 'mail' and not uri.startswith('mailto:'):
|
|
||||||
uri = 'mailto:' + uri
|
uri = 'mailto:' + uri
|
||||||
|
|
||||||
if gajim.config.get('openwith') == 'gnome-open':
|
if gajim.config.get('openwith') == 'gnome-open':
|
||||||
|
|
Loading…
Reference in New Issue