From: Michael Stapelberg Date: Sat, 26 Apr 2014 12:25:12 +0000 (+0200) Subject: i3-dmenu-desktop: also quote the %c field code (Thanks bo) X-Git-Tag: 4.8~69 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a0e979d097df7e51aaf794f28e253968487b47eb;p=i3%2Fi3 i3-dmenu-desktop: also quote the %c field code (Thanks bo) 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 --- 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;