Don't handle "foo: bar" as URL.

Fixes #227.
This commit is contained in:
Florian Bruhin 2014-11-09 21:54:15 +01:00
parent bf752f6ea4
commit 40be804ee6

View File

@ -160,7 +160,7 @@ def _has_explicit_scheme(url):
Args: Args:
url: The URL as QUrl. 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): def is_special_url(url):