mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
Revert incorrect change to GET/HEAD detection code. This will teach me to always compile before I commit.
This commit is contained in:
parent
c7f5dc3355
commit
8b843127ba
@ -403,9 +403,7 @@ int pdfp_check(modsec_rec *msr) {
|
|||||||
/* Ignore request methods other than GET and HEAD if
|
/* Ignore request methods other than GET and HEAD if
|
||||||
* configured to do so.
|
* configured to do so.
|
||||||
*/
|
*/
|
||||||
if ((msr->r->method_number != M_GET)&&(msr->r->method_number != M_HEAD)
|
if ((msr->r->method_number != M_GET)&&(cfg->pdfp_only_get != 0)) {
|
||||||
&&(cfg->pdfp_only_get != 0))
|
|
||||||
{
|
|
||||||
if (msr->txcfg->debuglog_level >= 4) {
|
if (msr->txcfg->debuglog_level >= 4) {
|
||||||
msr_log(msr, 4, "PdfProtect: Not intercepting a GET/HEAD request "
|
msr_log(msr, 4, "PdfProtect: Not intercepting a GET/HEAD request "
|
||||||
"(method=%s/%i).", log_escape_nq(msr->mp, msr->r->method), msr->r->method_number);
|
"(method=%s/%i).", log_escape_nq(msr->mp, msr->r->method), msr->r->method_number);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user