From: Paul Hänsch Date: Wed, 20 Mar 2024 10:57:40 +0000 (+0100) Subject: bugfix: accidental regex range X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=a48f2023821b9ca8840a111f381d53301c8e9b4b;p=cgilite bugfix: accidental regex range --- diff --git a/cgilite.awk b/cgilite.awk index 0a1e1ca..f16ed6a 100644 --- a/cgilite.awk +++ b/cgilite.awk @@ -99,7 +99,7 @@ function _cgilite_request( key, val) { getline; REQUEST_METHOD = $1; REQUEST_URI = $2; SERVER_PROTOCOL = $3; while ( getline ) { if ($0 ~ /^\r?$/) break; - else if ($0 ~ /^[a-zA-Z][0-9a-zA-Z-_]+: .*/) { + else if ($0 ~ /^[a-zA-Z][0-9a-zA-Z_-]+: .*/) { key = toupper($0); sub(/:.*$/, "", key); gsub(/-/, "_", key);