mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds support to variables: REQUEST_{METHOD,PROTOCOL,URI,URI_RAW}
This commit is contained in:
@@ -239,6 +239,10 @@ int Assay::processURI(const char *uri, const char *protocol,
|
||||
path_info.length() - offset);
|
||||
store_variable("REQUEST_BASENAME", basename);
|
||||
}
|
||||
store_variable("REQUEST_METHOD", protocol);
|
||||
store_variable("REQUEST_PROTOCOL", "HTTP/" + std::string(http_version));
|
||||
store_variable("REQUEST_URI", uri);
|
||||
store_variable("REQUEST_URI_RAW", uri);
|
||||
|
||||
if (pos != NULL && strlen(pos) > 2) {
|
||||
/**
|
||||
|
Reference in New Issue
Block a user