update 优化 网关验证码过滤器 路径匹配改为严格匹配

2.X
疯狂的狮子Li 3 years ago
parent 3a04eeb8fb
commit cf13ae8818

@ -44,7 +44,7 @@ public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object> {
ServerHttpRequest request = exchange.getRequest(); ServerHttpRequest request = exchange.getRequest();
// 非登录/注册请求或验证码关闭,不处理 // 非登录/注册请求或验证码关闭,不处理
if (!StringUtils.containsAnyIgnoreCase(request.getURI().getPath(), VALIDATE_URL) || !captchaProperties.getEnabled()) { if (!StringUtils.equalsAnyIgnoreCase(request.getURI().getPath(), VALIDATE_URL) || !captchaProperties.getEnabled()) {
return chain.filter(exchange); return chain.filter(exchange);
} }

Loading…
Cancel
Save