mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fix the Multipart parser error for unknown content type
This commit is contained in:
parent
80cfca6fa3
commit
d15b57895b
@ -726,7 +726,11 @@ int Transaction::processRequestBody() {
|
|||||||
} else if (m_requestBodyType == WWWFormUrlEncoded) {
|
} else if (m_requestBodyType == WWWFormUrlEncoded) {
|
||||||
m_variableOffset++;
|
m_variableOffset++;
|
||||||
extractArguments("POST", m_requestBody.str(), m_variableOffset);
|
extractArguments("POST", m_requestBody.str(), m_variableOffset);
|
||||||
} else if (a != NULL) {
|
} else if (m_requestBodyType != UnknownFormat) {
|
||||||
|
/**
|
||||||
|
* FIXME: double check to see if that is a valid scenario...
|
||||||
|
*
|
||||||
|
*/
|
||||||
std::string error;
|
std::string error;
|
||||||
if (a != NULL && a->empty() == false) {
|
if (a != NULL && a->empty() == false) {
|
||||||
error.assign(*a);
|
error.assign(*a);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user