From 4dd4ff68d3062bf37c8733076d0aee957fd5a547 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Tue, 4 Jul 2023 21:06:58 +1200 Subject: [PATCH] AK: Correct logic in file state decrementing a path in URL basic parsing --- AK/URLParser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AK/URLParser.cpp b/AK/URLParser.cpp index 9ad8f6fa00..5db78f295f 100644 --- a/AK/URLParser.cpp +++ b/AK/URLParser.cpp @@ -803,8 +803,12 @@ URL URLParser::parse(StringView raw_input, Optional const& base_url, Option continue; } } + // 5. Otherwise, set state to path state, and decrease pointer by 1. + else { + state = State::Path; + continue; + } - // FIXME: 5. Otherwise, set state to path state, and decrease pointer by 1. break; // -> file slash state, https://url.spec.whatwg.org/#file-slash-state case State::FileSlash: