From 40be804ee670c3c51f828b75b5e65f7ed3af050f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 9 Nov 2014 21:54:15 +0100 Subject: [PATCH] Don't handle "foo: bar" as URL. Fixes #227. --- qutebrowser/utils/urlutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/urlutils.py b/qutebrowser/utils/urlutils.py index 15231d9ce..bfa7ef189 100644 --- a/qutebrowser/utils/urlutils.py +++ b/qutebrowser/utils/urlutils.py @@ -160,7 +160,7 @@ def _has_explicit_scheme(url): Args: url: The URL as QUrl. """ - return url.isValid() and url.scheme() + return url.isValid() and url.scheme() and not url.path().startswith(' ') def is_special_url(url):