Strip spaces in url string correctly.
This commit is contained in:
parent
96c1d53222
commit
330af95778
@ -194,7 +194,7 @@ def is_url(urlstr):
|
||||
log.url.debug("Checking if '{}' is a URL (autosearch={}).".format(
|
||||
urlstr, autosearch))
|
||||
|
||||
url = urlstr.strip()
|
||||
urlstr = urlstr.strip()
|
||||
qurl = QUrl(urlstr)
|
||||
|
||||
if not autosearch:
|
||||
|
Loading…
Reference in New Issue
Block a user