summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-04-13 15:24:50 +0200
committertv <tv@krebsco.de>2017-04-13 16:27:04 +0200
commit8efdb0b3ef562f583d7eab2ad781854caacfbf9c (patch)
tree099a0907ed65e3b978a6089d916d76d1679c7adc
parent446547bbeca02e26a72b5dfaa4af69fa534caaa3 (diff)
header-field parser: accept OWS after colonv1.2.11.2.1
Issue found by makefu.
-rwxr-xr-xhtgen2
1 files changed, 1 insertions, 1 deletions
diff --git a/htgen b/htgen
index ce367ca..5ea88fb 100755
--- a/htgen
+++ b/htgen
@@ -79,7 +79,7 @@ while read -r line; do
k=${k//-/_}
k=${k,,}
k=req_$k
- v=${line#*: }
+ v=${line#*:}
v=${v## }
printf '%s=%s\n' "$k" "$v" >&2
export "$k=$v"