[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)
personal/stbuehler/tests-path
Glenn Strauss 2022-05-24 18:09:24 -04:00
parent a01e62bb7d
commit 8bdea5db14
1 changed files with 4 additions and 0 deletions

View File

@ -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); "