diff --git a/qutebrowser/utils/urlutils.py b/qutebrowser/utils/urlutils.py index 3f79cb87c..42f222a42 100644 --- a/qutebrowser/utils/urlutils.py +++ b/qutebrowser/utils/urlutils.py @@ -345,9 +345,8 @@ def get_path_if_valid(pathstr, cwd=None, relative=False, check_exists=False): Return: True if it is a valid path, False otherwise. """ - log.url.debug("Checking if '{}' is a path".format(pathstr)) - pathstr = pathstr.strip() + log.url.debug("Checking if '{}' is a path".format(pathstr)) expanded = os.path.expanduser(pathstr) if os.path.isabs(expanded):