summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xranger/ext/rifle.py3
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
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84