From df0e534a0b2853e3e0d09decbf49d01e2d7e5443 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 18 Feb 2014 10:45:34 +0100 Subject: [PATCH] bugfix: Always handle about-URLs as URL. --- qutebrowser/utils/url.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qutebrowser/utils/url.py b/qutebrowser/utils/url.py index 618601d32..156c57170 100644 --- a/qutebrowser/utils/url.py +++ b/qutebrowser/utils/url.py @@ -113,6 +113,10 @@ def is_url(url): # An URL will never contain a space logging.debug('Contains space -> no url') return False + elif is_about_url(url): + # About URLs are always URLs, even with autosearch=False + logging.debug('Is an about URL.') + return True elif autosearch == 'dns': logging.debug('Checking via DNS') return _is_url_dns(QUrl.fromUserInput(urlstr)) @@ -126,7 +130,7 @@ def _is_url_naive(url): PROTOCOLS = ['http://', 'https://'] u = urlstring(url) return (any(u.startswith(proto) for proto in PROTOCOLS) or '.' in u or - is_about_url(url) or u == 'localhost') + u == 'localhost') def _is_url_dns(url):