mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Limits the variable size into the debuglogs and print it in hex if needed
This commit is contained in:
parent
8772daec4d
commit
b1e845211c
@ -29,6 +29,7 @@
|
|||||||
#include "modsecurity/modsecurity.h"
|
#include "modsecurity/modsecurity.h"
|
||||||
#include "actions/transformations/none.h"
|
#include "actions/transformations/none.h"
|
||||||
#include "variables/variations/exclusion.h"
|
#include "variables/variations/exclusion.h"
|
||||||
|
#include "src/utils.h"
|
||||||
|
|
||||||
using ModSecurity::Variables::Variations::Exclusion;
|
using ModSecurity::Variables::Variations::Exclusion;
|
||||||
|
|
||||||
@ -271,8 +272,8 @@ bool Rule::evaluate(Assay *assay) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assay->debug(9, "Target value: \"" + value + "\" (Variable: " + \
|
assay->debug(9, "Target value: \"" + limitTo(80, toHexIfNeeded(value)) + \
|
||||||
v.first + ")");
|
"\" (Variable: " + v.first + ")");
|
||||||
|
|
||||||
ret = this->op->evaluate(assay, value);
|
ret = this->op->evaluate(assay, value);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user