From 07de8f7515ee3607428229e5f61e4266261a3520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 17 May 2015 00:07:01 +0200 Subject: [PATCH] appmenus: allow '_' in Exec and other fields --- appmenus-scripts/qubes-receive-appmenus | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appmenus-scripts/qubes-receive-appmenus b/appmenus-scripts/qubes-receive-appmenus index d3ac701..682d88d 100755 --- a/appmenus-scripts/qubes-receive-appmenus +++ b/appmenus-scripts/qubes-receive-appmenus @@ -42,13 +42,13 @@ appmenus_line_size = 1024 appmenus_line_count = 100000 # regexps for sanitization of retrieved values -std_re = re.compile(r"^[/a-zA-Z0-9.,&() -]*$") +std_re = re.compile(r"^[/a-zA-Z0-9.,&()_ -]*$") fields_regexp = { "Name": std_re, "GenericName": std_re, "Comment": std_re, "Categories": re.compile(r"^[a-zA-Z0-9/.;:'() -]*$"), - "Exec": re.compile(r"^[a-zA-Z0-9()%&>/{}\"'\\:.= -]*$"), + "Exec": re.compile(r"^[a-zA-Z0-9()_%&>/{}\"'\\:.= -]*$"), "Icon": re.compile(r"^[a-zA-Z0-9/_.-]*$"), }