parent
8b7c457802
commit
e5b3880b71
@ -212,7 +212,7 @@ def _has_explicit_scheme(url):
|
|||||||
# symbols, we treat this as not a URI anyways.
|
# symbols, we treat this as not a URI anyways.
|
||||||
return (url.isValid() and url.scheme() and
|
return (url.isValid() and url.scheme() and
|
||||||
(url.host() or url.path()) and
|
(url.host() or url.path()) and
|
||||||
not url.path().startswith(' ') and
|
' ' not in url.path() and
|
||||||
not url.path().startswith(':'))
|
not url.path().startswith(':'))
|
||||||
|
|
||||||
|
|
||||||
|
@ -333,6 +333,7 @@ def test_get_search_url_invalid(urlutils_config_stub, url):
|
|||||||
(False, True, False, '1337'), # no DNS because bogus-IP
|
(False, True, False, '1337'), # no DNS because bogus-IP
|
||||||
(False, True, True, 'deadbeef'),
|
(False, True, True, 'deadbeef'),
|
||||||
(False, True, True, 'hello.'),
|
(False, True, True, 'hello.'),
|
||||||
|
(False, True, False, 'site:cookies.com oatmeal raisin'),
|
||||||
# no DNS because bogus-IP
|
# no DNS because bogus-IP
|
||||||
pytest.mark.xfail(qtutils.version_check('5.6.1'),
|
pytest.mark.xfail(qtutils.version_check('5.6.1'),
|
||||||
reason='Qt behavior changed')(
|
reason='Qt behavior changed')(
|
||||||
|
Loading…
Reference in New Issue
Block a user