summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-04-30 16:42:03 +0200
committertv <tv@krebsco.de>2020-04-30 16:42:03 +0200
commit67616cb9f0fe6c0bb23afc2f9bfc1b9d43bed58f (patch)
tree15ccf572e0fa237f244cf48d1e052bd4780c8fb0
parent9f0eb538f970d6fb5755ec03d8368a491bf0e418 (diff)
request-line parser: accept = and _ in URIv1.2.31.2.3
-rwxr-xr-xhtgen2
1 files changed, 1 insertions, 1 deletions
diff --git a/htgen b/htgen
index 562f092..78696be 100755
--- a/htgen
+++ b/htgen
@@ -42,7 +42,7 @@ EOF
## Parse Request-Line. {{{
read Request_Line
eval "$(echo "$Request_Line" | sed -rn '
- s^([a-zA-Z]+) ([a-zA-Z0-9?&+*/.-]+) HTTP/([0-9]+\.[0-9]+)\r$\
+ s^([a-zA-Z]+) ([a-zA-Z0-9=?&+*/._-]+) HTTP/([0-9]+\.[0-9]+)\r$\
Request_Line="&"\
Method="\1"\
Request_URI="\2"\