# XssSqlFilterProcessor

`cn.wizzer.app.web.commons.processor.XssSqlFilterProcessor`

~~~
//要排除的请求路径
private String[] ignoreUrls = new String[]{
        "/platform/sys/app/conf/addDo",
        "/platform/sys/app/conf/editDo"
};
    
public void process(ActionContext ac) throws Throwable {
    if (checkParams(ac)) {
        if (NutShiro.isAjax(ac.getRequest())) {
            ac.getResponse().addHeader("loginStatus", "paramsDenied");
            NutShiro.rendAjaxResp(ac.getRequest(), ac.getResponse(), Result.error(Mvcs.getMessage(ac.getRequest(), "system.paramserror")));
        } else {
            new ForwardView(lerrorUri).render(ac.getRequest(), ac.getResponse(), Mvcs.getMessage(ac.getRequest(), "system.paramserror"));
        }
        return;
    }
    doNext(ac);
}
...
~~~
* ignoreUrls可增加要排除拦截的路径
* 判断是否Ajax请求，若包含关键词则输出错误信息，或跳转到错误页
* 表单字段中包含English 的时候很容易被拦截，请根据业务适当修改关键词
