mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds first PoC for the operator offset feature
This commit is contained in:
committed by
Felipe Zimmerle
parent
9a8fc3116a
commit
ecbf292f6d
@@ -178,10 +178,10 @@ int JSON::addArgument(const std::string& value) {
|
||||
}
|
||||
|
||||
if (m_data.prefix.empty()) {
|
||||
m_transaction->addArgument("JSON", m_data.current_key, value);
|
||||
m_transaction->addArgument("JSON", m_data.current_key, value, 0);
|
||||
} else {
|
||||
m_transaction->addArgument("JSON", m_data.prefix + "." + \
|
||||
m_data.current_key, value);
|
||||
m_data.current_key, value, 0);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user