mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds support to the FILES_SIZES variable
This commit is contained in:
@@ -212,6 +212,8 @@ bool Multipart::process(std::string data) {
|
||||
if (m.filename.empty() == false) {
|
||||
variables.emplace("FILES:" + m.name, m.filename);
|
||||
variables.emplace("FILES_NAMES:" + m.name, m.name);
|
||||
variables.emplace("FILES_SIZES:" + m.name,
|
||||
std::to_string(m.content.size()));
|
||||
files_size = files_size + m.content.size();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user