mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Support configurable limit on number of arguments processed
This commit is contained in:
committed by
Felipe Zimmerle
parent
4e9ba44d03
commit
f57265a3e2
@@ -142,7 +142,10 @@ int JSON::addArgument(const std::string& value) {
|
||||
}
|
||||
|
||||
|
||||
m_transaction->addArgument("JSON", path + data, value, 0);
|
||||
if (!m_transaction->addArgument("JSON", path + data, value, 0)) {
|
||||
// cancel parsing by returning false
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user