fix: when url has param with question mark,parse param wrong (#14235)

This commit is contained in:
yuanxingke 2024-05-28 10:55:46 +08:00 committed by GitHub
parent 2ddf0fdec4
commit 000db7c40a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -57,7 +57,6 @@ public class ProviderParseContext extends BaseParseContext {
public String getPathVariable(int urlSplitIndex) {
String[] split = getRequestFacade().getRequestURI().split("/");
return split[urlSplitIndex];
return split[urlSplitIndex].split("\\?")[0];
}
}