我在 web.config 中有一个 Elmah 过滤器设置来停止通知某些错误消息。但他们似乎仍然通过了。可能是什么原因?
<httpModules>
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="SecuritySwitch" type="SecuritySwitch.SecuritySwitchModule, SecuritySwitch" />
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
</httpModules>
<errorFilter>
<test>
<regex binding="Exception.Message" pattern="(?ix: \b This \b.+?\b is \b.+?\b an \b.+?\b invalid \b.+?\b webresource \b.+?\b request \b )" />
</test>
<test>
<regex binding="Exception.Message" pattern="(?ix: \b Path \b.+?\b eurl.axd \b )" />
</test>
<test>
<regex binding="Exception.Message" pattern="(?ix: \b potentially \b.+?\b dangerous \b.+?\b value \b.+?\b detected \b.+?\b client \b )" />
</test>
</errorFilter>