From 44b8ab6d44c7c747b6f19780066864c70362c052 Mon Sep 17 00:00:00 2001 From: Jehan Date: Tue, 15 Jul 2014 16:42:27 +0000 Subject: [PATCH] xdg-email: reset the IFS before interpreting a shell command. --- scripts/xdg-email.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in index 4c3cb83..58f49d6 100644 --- a/scripts/xdg-email.in +++ b/scripts/xdg-email.in @@ -207,6 +207,9 @@ open_generic() url_encode() { +# The shell needs the default internal field separator +# otherwise it would search for $utf8 as a command in whole. +IFS=" " str=$(echo "$1" | $utf8) local ORIG_LANG="$LANG" local ORIG_LC_ALL="$LC_ALL" -- 1.8.1.2