]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Allow : character in configuration files.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Jan 2012 21:09:31 +0000 (22:09 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Jan 2012 21:17:10 +0000 (22:17 +0100)
According to bug #10006, it is needed in some DSL credentials.

As : is not a special character in shell code (at least if
{} is not allowed either) we can safely use it.

config/rootfiles/core/56/filelists/files
src/scripts/readhash

index 58c19601ee96c50fbd7d20512d3c83dfd54261c4..7b1d4c0e82f983d7650e9c71946be77da01aaba1 100644 (file)
@@ -8,3 +8,4 @@ srv/web/ipfire/cgi-bin/media.cgi
 usr/local/bin/hddshutdown
 usr/local/bin/makegraphs
 usr/local/bin/openvpnctrl
+usr/local/bin/readhash
index 63a3e0f88d8b8ad5227a1a0989df73fa7e9006f2..8c187d51d1bdb7a3a6d282d754ea63a9a62ba35c 100644 (file)
@@ -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