X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=src%2Fscripts%2Freadhash;h=bffc93fbd00c31a76e9c96fc17dabf0a87c3c9ef;hp=8c187d51d1bdb7a3a6d282d754ea63a9a62ba35c;hb=d9c6f56c2ea171cbc1fa396feb30d2814b9a818d;hpb=9e31e76b8b72325dcaede4d3dfefc4a56d5caa4b diff --git a/src/scripts/readhash b/src/scripts/readhash index 8c187d51d1..bffc93fbd0 100644 --- a/src/scripts/readhash +++ b/src/scripts/readhash @@ -9,11 +9,11 @@ # shell variables must consist of alphanumeric characters and underscores, # and begin with an alphabetic character or underscore. -VARNAME='[A-Za-z_][A-zA-z0-9_]*' +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