mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +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,
|
||||
Transaction *transaction) {
|
||||
transaction->m_requestBodyProcessor = Transaction::XMLRequestBody;
|
||||
transaction->m_collections.store("REQBODY_PROCESSOR", "XML");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -485,12 +485,6 @@ int Transaction::addRequestHeader(const std::string& key,
|
||||
this->m_requestBodyType = WWWFormUrlEncoded;
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user