remote files kitten: Fix working with files whose names have characters that need to be quoted in shell scripts

Fixes #5313
This commit is contained in:
Kovid Goyal
2022-07-26 08:06:25 +05:30
parent 29b3d49cd5
commit 54d2f06abe
3 changed files with 6 additions and 3 deletions

View File

@@ -813,7 +813,7 @@ class Window:
except Exception:
hostname = ''
remote_hostname = purl.netloc.partition(':')[0]
if remote_hostname and remote_hostname != hostname and remote_hostname != 'localhost':
if True or remote_hostname and remote_hostname != hostname and remote_hostname != 'localhost':
self.handle_remote_file(purl.netloc, unquote(purl.path))
return
url = urlunparse(purl._replace(netloc=''))