summarylogtreecommitdiffstats
path: root/001_fix_shell_escape.patch
diff options
context:
space:
mode:
authorIsmaël Bouya2017-01-19 09:33:53 +0100
committerIsmaël Bouya2017-01-19 09:33:53 +0100
commite682b5589778e3db8eb7292c119c9c8ffb54ba27 (patch)
treed5de2f1843aff8b110b2d2208c2a94272ad89d49 /001_fix_shell_escape.patch
parentac596e9c4da2f53757e7e4979d48f209cdf0b1b7 (diff)
downloadaur-e682b5589778e3db8eb7292c119c9c8ffb54ba27.tar.gz
Update patches for last version
Diffstat (limited to '001_fix_shell_escape.patch')
-rw-r--r--001_fix_shell_escape.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/001_fix_shell_escape.patch b/001_fix_shell_escape.patch
index c3c28c3e8cf9..961d72ed4c66 100644
--- a/001_fix_shell_escape.patch
+++ b/001_fix_shell_escape.patch
@@ -1,6 +1,6 @@
---- a/urwid_ui.py 2016-03-14 02:28:17.425313918 +0100
-+++ b/urwid_ui.py 2016-03-14 02:29:22.807844809 +0100
-@@ -5,6 +5,7 @@
+--- a/urwid_ui.py
++++ b/urwid_ui.py
+@@ -5,6 +5,7 @@ Implemented using the console user interface library urwid.
"""
import subprocess
import shlex
@@ -8,22 +8,22 @@
import logging
logger = logging.getLogger(__name__)
-@@ -323,16 +324,16 @@
+@@ -322,16 +323,16 @@ class MainFrame(urwid.Frame):
elif key in ["enter"]:
if self.selected_note:
-- system(self.editor + ' ' + self.selected_note.abspath, self.loop)
+- system(self.editor + " '" + self.selected_note.abspath + "'", self.loop)
+ system(self.editor + ' ' + pipes.quote(self.selected_note.abspath), self.loop)
else:
if self.search_box.edit_text:
try:
note = self.notebook.add_new(self.search_box.edit_text)
-- system(self.editor + ' ' + note.abspath, self.loop)
+- system(self.editor + " '" + note.abspath + "'", self.loop)
+ system(self.editor + ' ' + pipes.quote(note.abspath), self.loop)
except notebook.NoteAlreadyExistsError:
# Try to open the existing note instead.
-- system(self.editor + ' ' + self.search_box.edit_text +
-- self.notebook.extension,
+- system(self.editor + " '" + self.search_box.edit_text +
+- self.notebook.extension + "'",
+ system(self.editor + ' ' + pipes.quote(self.search_box.edit_text +
+ self.notebook.extension),
self.loop)