From: Felix Fietkau Date: Mon, 9 Oct 2006 04:29:27 +0000 (+0000) Subject: fix shell escaping bug in append() function X-Git-Tag: reboot~30718^2~58 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=91712548aee6c2b459b93d026bd91cab41f2bb18;p=openwrt%2Fopenwrt.git fix shell escaping bug in append() function SVN-Revision: 4981 --- diff --git a/openwrt/package/base-files/default/etc/functions.sh b/openwrt/package/base-files/default/etc/functions.sh index ce22ed151c..2ce172eb35 100755 --- a/openwrt/package/base-files/default/etc/functions.sh +++ b/openwrt/package/base-files/default/etc/functions.sh @@ -25,7 +25,7 @@ append() { local var="$1" local value="$2" local sep="${3:- }" - eval "export ${var}=\"\${${var}:+\${${var}}${value:+$sep}}$value\"" + eval "export ${var}=\"\${${var}:+\${${var}}${value:+$sep}}\$value\"" } reset_cb() {