From 6acce6039364fa7c66d0cadffb2c6332c80c71eb Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Tue, 4 Jul 2023 22:22:01 +1200 Subject: [PATCH] AK: Fix typo in URL basic parse authority state We weren't actually ever iterating over the buffer, and only what we were intending to append to (which is empty!). --- AK/URLParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AK/URLParser.cpp b/AK/URLParser.cpp index b017bbed63..a06059f4ec 100644 --- a/AK/URLParser.cpp +++ b/AK/URLParser.cpp @@ -563,8 +563,8 @@ URL URLParser::parse(StringView raw_input, Optional const& base_url, Option StringBuilder builder; - // FIXME: 4. For each codePoint in buffer: - for (auto c : Utf8View(builder.string_view())) { + // 4. For each codePoint in buffer: + for (auto c : Utf8View(buffer.string_view())) { // 1. If codePoint is U+003A (:) and passwordTokenSeen is false, then set passwordTokenSeen to true and continue. if (c == ':' && !password_token_seen) { password_token_seen = true;