mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Improves SecRemoteRules messages on IIS
IIS was not displaying correctly the error messages and the amount of loaded rules while the operator SecRemoteRules was used.
This commit is contained in:
@@ -797,8 +797,12 @@ CMyHttpModule::OnBeginRequest(
|
||||
goto Finished;
|
||||
}
|
||||
|
||||
modsecStatusEngineCall();
|
||||
|
||||
modsecReportRemoteLoadedRules();
|
||||
if (this->status_call_already_sent == false)
|
||||
{
|
||||
this->status_call_already_sent = true;
|
||||
modsecStatusEngineCall();
|
||||
}
|
||||
}
|
||||
delete apppath;
|
||||
}
|
||||
@@ -1254,6 +1258,8 @@ CMyHttpModule::CMyHttpModule()
|
||||
GetSystemInfo(&sysInfo);
|
||||
m_dwPageSize = sysInfo.dwPageSize;
|
||||
|
||||
this->status_call_already_sent = false;
|
||||
|
||||
InitializeCriticalSection(&m_csLock);
|
||||
|
||||
modsecSetLogHook(this, Log);
|
||||
|
Reference in New Issue
Block a user