Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit afb57a1

Browse files
committed
920470: include chars from rfc 2046
RFC 2046 allows additional chars for the boundary. \d removed as it is covered by \w in the regex. Removed unnecessary escapes.
1 parent 2f7f6fe commit afb57a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ SecRule &TX:COMBINED_FILE_SIZES "@eq 1" \
867867
# - text/plain; charset="UTF-8"
868868
# - multipart/form-data; boundary=----WebKitFormBoundary12345
869869
#
870-
SecRule REQUEST_HEADERS:Content-Type "!@rx ^[\w\d/\.\-\+]+(?:\s?;\s?(?:boundary|charset)\s?=\s?['\"\w\d\.\-]+)?$" \
870+
SecRule REQUEST_HEADERS:Content-Type "!@rx ^[\w/.\-+]+(?:\s?;\s?(?:boundary|charset)\s?=\s?['\"\w.\-()+,/:=?]+)?$" \
871871
"id:920470,\
872872
phase:1,\
873873
block,\

0 commit comments

Comments
 (0)