28 lines
710 B
Diff
28 lines
710 B
Diff
From 0c465c119130c2739e3086b7d3573313cb19233a Mon Sep 17 00:00:00 2001
|
|
From: Jehan <jehan@girinstud.io>
|
|
Date: Tue, 15 Jul 2014 16:42:27 +0000
|
|
Subject: [PATCH 20/22] 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 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"
|
|
--
|
|
2.1.0
|
|
|