mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +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,
|
std::string Length::evaluate(std::string value,
|
||||||
Assay *assay) {
|
Assay *assay) {
|
||||||
/**
|
|
||||||
* @todo Implement the transformation Length
|
return std::to_string(value.size());
|
||||||
*/
|
|
||||||
if (assay) {
|
|
||||||
#ifndef NO_LOGS
|
|
||||||
assay->debug(4, "Transformation Length is not implemented yet.");
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace transformations
|
} // namespace transformations
|
||||||
|
Loading…
x
Reference in New Issue
Block a user