update 优化 网关验证码过滤器 路径匹配改为严格匹配 避免不相关路径被拦截

This commit is contained in:
疯狂的狮子Li 2022-07-19 10:49:38 +00:00 committed by Gitee
parent cc0e184314
commit e3aa6b42e0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object>
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);
}