From ba4b6bdb3431d1ae05327c87e9eb9f1d7666f2ce Mon Sep 17 00:00:00 2001 From: guqing <1484563614@qq.com> Date: Tue, 3 Dec 2024 18:43:05 +0800 Subject: [PATCH] chore: standardize request parsing to use a single path handler --- .../run/halo/app/security/authorization/RequestInfoFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/main/java/run/halo/app/security/authorization/RequestInfoFactory.java b/application/src/main/java/run/halo/app/security/authorization/RequestInfoFactory.java index b908c9e8e9..54e4112f68 100644 --- a/application/src/main/java/run/halo/app/security/authorization/RequestInfoFactory.java +++ b/application/src/main/java/run/halo/app/security/authorization/RequestInfoFactory.java @@ -94,7 +94,7 @@ public RequestInfo newRequestInfo(ServerHttpRequest request) { RequestInfo requestInfo = new RequestInfo(false, path.value(), request.getMethod().name().toLowerCase()); - String[] currentParts = splitPath(request.getPath().value()); + String[] currentParts = splitPath(path.value()); if (currentParts.length < 3) { // return a non-resource request