From: Arne Fitzenreiter Date: Thu, 14 Feb 2013 17:59:42 +0000 (+0100) Subject: readhash: allow % character in config files. X-Git-Tag: v2.13-core66~6 X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fipfire-2.x.git;a=commitdiff_plain;h=37dd0cd2a2fcfa7c2b65c53ab5627cb7a4a37b40 readhash: allow % character in config files. --- diff --git a/src/scripts/readhash b/src/scripts/readhash index cc063a7a2b..bffc93fbd0 100644 --- a/src/scripts/readhash +++ b/src/scripts/readhash @@ -13,7 +13,7 @@ VARNAME='[A-Za-z_][A-Za-z0-9_]*' # For the assigned value we only accept a limited number of characters - none # of which are shell metachars -VARCHARS='A-Za-z0-9=/,.:_@#+-' +VARCHARS='A-Za-z0-9=/,.:%_@#+-' VARVAL="[${VARCHARS}]*" sed -ne "s/\(${VARNAME}\)=\(${VARVAL}\)$/\1=\2/p" $1