mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Makes XML request body processor to be selected only by ctl:equestBodyProcessor
This commit is contained in:
parent
7cb27eb9fc
commit
7bd6e9a2bd
@ -27,6 +27,8 @@ namespace actions {
|
|||||||
bool CtlRequestBodyProcessorXML::evaluate(Rule *rule,
|
bool CtlRequestBodyProcessorXML::evaluate(Rule *rule,
|
||||||
Transaction *transaction) {
|
Transaction *transaction) {
|
||||||
transaction->m_requestBodyProcessor = Transaction::XMLRequestBody;
|
transaction->m_requestBodyProcessor = Transaction::XMLRequestBody;
|
||||||
|
transaction->m_collections.store("REQBODY_PROCESSOR", "XML");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -485,12 +485,6 @@ int Transaction::addRequestHeader(const std::string& key,
|
|||||||
this->m_requestBodyType = WWWFormUrlEncoded;
|
this->m_requestBodyType = WWWFormUrlEncoded;
|
||||||
m_collections.store("REQBODY_PROCESSOR", "URLENCODED");
|
m_collections.store("REQBODY_PROCESSOR", "URLENCODED");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (l == "text/xml") {
|
|
||||||
// FIXME: this should be set by ctl:requestBodyProcessor.
|
|
||||||
this->m_requestBodyType = XMLRequestBody;
|
|
||||||
m_collections.store("REQBODY_PROCESSOR", "XML");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user