mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
XML: Remove error messages from stderr
This commit is contained in:
parent
42a16c71cf
commit
05e9e7cf31
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
|||||||
v3.0.4 - YYYY-MMM-DD (to be released)
|
v3.0.4 - YYYY-MMM-DD (to be released)
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
- XML: Remove error messages from stderr
|
||||||
|
[Issue #2010 - @JaiHarpalani, @zimmerle]
|
||||||
- Filter comment or blank line for pmFromFile operator
|
- Filter comment or blank line for pmFromFile operator
|
||||||
[Issue #1645 - @LeeShan87, @victorhora, @tdoubley]
|
[Issue #1645 - @LeeShan87, @victorhora, @tdoubley]
|
||||||
- Additional adjustment to Cookie header parsing
|
- Additional adjustment to Cookie header parsing
|
||||||
|
@ -99,6 +99,9 @@ bool XML::processChunk(const char *buf, unsigned int size,
|
|||||||
error->assign("XML: Failed to create parsing context.");
|
error->assign("XML: Failed to create parsing context.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
xmlSetGenericErrorFunc(m_data.parsing_ctx, null_error);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,6 +53,10 @@ class XML {
|
|||||||
static xmlParserInputBufferPtr unloadExternalEntity(const char *URI,
|
static xmlParserInputBufferPtr unloadExternalEntity(const char *URI,
|
||||||
xmlCharEncoding enc);
|
xmlCharEncoding enc);
|
||||||
|
|
||||||
|
static void null_error(void *ctx, const char *msg, ...) {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
xml_data m_data;
|
xml_data m_data;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user