mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 14:15:46 +03:00
Adds checks for the NO_LOGS definition and improved the vars resolution time
This commit is contained in:
@@ -32,12 +32,16 @@ bool DetectXSS::evaluate(Assay *assay, const std::string &input) {
|
||||
|
||||
if (is_xss) {
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(5, "detected XSS using libinjection.");
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
if (assay) {
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(9, "libinjection was not able to " \
|
||||
"find any XSS in: " + input);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user