add FILES

This commit is contained in:
Sebastien Blot 2024-04-26 15:13:24 +02:00
parent e5043c8d98
commit 79eb96fbee
No known key found for this signature in database
GPG key ID: DFC2902F40449F6A

View file

@ -11,20 +11,23 @@ type ModsecurityRule struct {
} }
var zonesMap map[string]string = map[string]string{ var zonesMap map[string]string = map[string]string{
"ARGS": "ARGS_GET", "ARGS": "ARGS_GET",
"ARGS_NAMES": "ARGS_GET_NAMES", "ARGS_NAMES": "ARGS_GET_NAMES",
"BODY_ARGS": "ARGS_POST", "BODY_ARGS": "ARGS_POST",
"BODY_ARGS_NAMES": "ARGS_POST_NAMES", "BODY_ARGS_NAMES": "ARGS_POST_NAMES",
"COOKIES": "REQUEST_COOKIES", "COOKIES": "REQUEST_COOKIES",
"COOKIES_NAMES": "REQUEST_COOKIES_NAMES", "COOKIES_NAMES": "REQUEST_COOKIES_NAMES",
"HEADERS_NAMES": "REQUEST_HEADERS_NAMES", "FILES": "FILES",
"HEADERS": "REQUEST_HEADERS", "FILES_NAMES": "FILES_NAMES",
"METHOD": "REQUEST_METHOD", "FILES_TOTAL_SIZE": "FILES_COMBINED_SIZE",
"PROTOCOL": "REQUEST_PROTOCOL", "HEADERS_NAMES": "REQUEST_HEADERS_NAMES",
"URI": "REQUEST_FILENAME", "HEADERS": "REQUEST_HEADERS",
"URI_FULL": "REQUEST_URI", "METHOD": "REQUEST_METHOD",
"RAW_BODY": "REQUEST_BODY", "PROTOCOL": "REQUEST_PROTOCOL",
"FILENAMES": "FILES", "URI": "REQUEST_FILENAME",
"URI_FULL": "REQUEST_URI",
"RAW_BODY": "REQUEST_BODY",
"FILENAMES": "FILES",
} }
var transformMap map[string]string = map[string]string{ var transformMap map[string]string = map[string]string{