예제 #1
0
        private void OnPreSendRequestContent(object sender, EventArgs e)
        {
            StreamCapture filter = App.Response.Filter as StreamCapture;

            HttpResponseBody = filter.StreamContent;
            XSSAudit.CheckXSS(App, HttpResponseBody);
        }
예제 #2
0
 private void OnPreSendRequestContent(object sender, EventArgs e)
 {
     if (HttpContext.Current.Response.StatusCode != 502 && HttpContext.Current.Response.StatusCode != 404) // 暫定対応
     {
         StreamCapture filter = App.Response.Filter as StreamCapture;
         HttpResponseBody = filter.StreamContent;
         XSSAudit.CheckXSS(App, HttpResponseBody);
     }
 }