From a0e979d097df7e51aaf794f28e253968487b47eb Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 26 Apr 2014 14:25:12 +0200 Subject: [PATCH] i3-dmenu-desktop: also quote the %c field code (Thanks bo) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The spec says: “Implementations must take care not to expand field codes into multiple arguments unless explicitly instructed by this specification. This means that name fields, filenames and other replacements that can contain spaces must be passed as a single argument to the executable program after expansion.” fixes #1240 --- i3-dmenu-desktop | 1 + 1 file changed, 1 insertion(+) diff --git a/i3-dmenu-desktop b/i3-dmenu-desktop index cccc1dc5..1b66ed41 100755 --- a/i3-dmenu-desktop +++ b/i3-dmenu-desktop @@ -376,6 +376,7 @@ sub quote { $choice = quote($choice); $location = quote($location); +$name = quote($name); # Remove deprecated field codes, as the spec dictates. $exec =~ s/%[dDnNvm]//g; -- 2.39.5