From: Michael Tremer Date: Mon, 19 Jan 2026 16:21:39 +0000 (+0000) Subject: initscripts: functions: Permit ! in the value of key/value files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e539a5967ea724c7228fb7fffa47e85d85b6fae3;p=ipfire-2.x.git initscripts: functions: Permit ! in the value of key/value files Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/system/functions b/src/initscripts/system/functions index 757912eab..c0c40e986 100644 --- a/src/initscripts/system/functions +++ b/src/initscripts/system/functions @@ -923,7 +923,7 @@ readhash() { local val="${line#*=}" # Skip lines with invalid values - if ! [[ ${val} =~ ^[\'][\ A-Za-z0-9=/,.:%_@#+-]*[\']$ ]] && ! [[ ${val} =~ ^[A-Za-z0-9=/,.:%_@#+-]*$ ]]; then + if ! [[ ${val} =~ ^[\'][\ A-Za-z0-9=/,.:%_@#+-\\!]*[\']$ ]] && ! [[ ${val} =~ ^[A-Za-z0-9=/,.:%_@#+-\\!]*$ ]]; then echo "Invalid value '${val}' for key '${key}'" >&2 continue fi