[mod_magnet] skip req body collect warn if modsec3

skip req body collect warning if handler is already mod_security3
(prototype mod_security3 uses similar technique to collect req body)
master
Glenn Strauss 6 months ago
parent a01e62bb7d
commit 8bdea5db14
  1. 4
      src/mod_magnet.c

@ -2443,6 +2443,10 @@ static int magnet_reqbody(lua_State *L) {
r->handler_module = plugin_data_singleton->self;
lua_pushboolean(L, 0);
}
else if (0 == strcmp(r->handler_module->name, "security3")) {
/*(mod_security3 uses similar technique to collect req body)*/
lua_pushboolean(L, 0);
}
else {
log_error(r->conf.errh, __FILE__, __LINE__,
"unable to collect request body (handler already set); "

Loading…
Cancel
Save