mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 14:09:25 +00:00
Fix RfcUriParser parsing for single char fragments
Prior to this commit, the `RfcUriParser` would ignore URI fragments if their length is < 2. This commit fixes the length check to allow for single char fragments when parsing URIs. Fixes gh-36029
This commit is contained in:
@@ -556,7 +556,7 @@ abstract class RfcUriParser {
|
||||
}
|
||||
|
||||
public void captureFragmentIfNotEmpty() {
|
||||
if (this.index > this.componentIndex + 1) {
|
||||
if (this.index > this.componentIndex) {
|
||||
this.fragment = captureComponent("fragment");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user