mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Adds support to length transformation
This commit is contained in:
parent
8d78952e18
commit
7ab75ac015
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user