From b13f86cf461feaa32f5298a0f12f17e79d7a2a32 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Mon, 7 Oct 2024 21:09:10 +0100 Subject: [PATCH] Fix failing tests in spring-test after recent changes See gh-33639 --- .../java/org/springframework/web/util/RfcUriParser.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/util/RfcUriParser.java b/spring-web/src/main/java/org/springframework/web/util/RfcUriParser.java index 7e006c09c3df..3a281bc5ea7b 100644 --- a/spring-web/src/main/java/org/springframework/web/util/RfcUriParser.java +++ b/spring-web/src/main/java/org/springframework/web/util/RfcUriParser.java @@ -142,10 +142,11 @@ public void handleNext(InternalParser parser, char c, int i) { case ';': case '?': case '#': + case '.': + parser.index(--i); + parser.advanceTo(PATH); + break; default: - if (c == '.') { - parser.index(--i); - } parser.advanceTo(PATH); } }