summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehan <jehan@girinstud.io>2014-07-15 16:42:27 +0000
committerRex Dieter <rdieter@math.unl.edu>2014-09-19 12:55:45 -0500
commit0c465c119130c2739e3086b7d3573313cb19233a (patch)
tree86f3e6d61349737b2cfa7e9cb6a5f0b30e9197ce
parent190448845baaccf68154e7d03392c74cbe163505 (diff)
xdg-email: reset the IFS before interpreting a shell command.
-rw-r--r--scripts/xdg-email.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in
index 54de71f..e68425c 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"