diff options
-rwxr-xr-x | ranger/ext/rifle.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index 0a0b15ac..ea2a489c 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -175,7 +175,8 @@ class Rifle(object): self._app_flags = squash_flags(self._app_flags) flags = self._app_flags - _filenames = "' '".join(f.replace("'", "'\\\''") for f in files) + _filenames = "' '".join(f.replace("'", "'\\\''") for f in files + if "\x00" not in f) command = "set -- '%s'" % _filenames + '\n' # Apply flags |