ModSecurity
ModSecurity copied to clipboard
Don't spray XML parser errors to stderr
Currently, all XML parser errors are written to stderr, which in case of Apache means that the messages end up randomly in error_log, unformatted.
This pull request adds custom XML error handling function, which just discards all the messages at the moment.
Hello @erkia ,
Could you provide a couple of examples of such messages? Ideally include xml bodies to reproduce them and whether any special configuration is required to reproduce the issue (e.g. higher LogLevel in the apache config).
Non-standard messages in error log are not clean, but no message at all isn't good either. We should use msr_log(msr, ...), no?