mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds support to length transformation
This commit is contained in:
@@ -37,15 +37,8 @@ Length::Length(std::string action)
|
||||
|
||||
std::string Length::evaluate(std::string value,
|
||||
Assay *assay) {
|
||||
/**
|
||||
* @todo Implement the transformation Length
|
||||
*/
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(4, "Transformation Length is not implemented yet.");
|
||||
#endif
|
||||
}
|
||||
return value;
|
||||
|
||||
return std::to_string(value.size());
|
||||
}
|
||||
|
||||
} // namespace transformations
|
||||
|
Reference in New Issue
Block a user