|
@@ -58,12 +58,12 @@ public class XssFilter implements Filter
|
|
|
private boolean handleExcludeURL(HttpServletRequest request, HttpServletResponse response)
|
|
|
{
|
|
|
String url = request.getServletPath();
|
|
|
- String method = request.getMethod();
|
|
|
- // GET DELETE 不过滤
|
|
|
- if (method == null || method.matches("GET") || method.matches("DELETE"))
|
|
|
- {
|
|
|
- return true;
|
|
|
- }
|
|
|
+// String method = request.getMethod();
|
|
|
+// // GET DELETE 不过滤
|
|
|
+// if (method == null || method.matches("GET") || method.matches("DELETE"))
|
|
|
+// {
|
|
|
+// return true;
|
|
|
+// }
|
|
|
return StringUtils.matches(url, excludes);
|
|
|
}
|
|
|
|