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!).
This commit is contained in:
Shannon Booth 2023-07-04 22:22:01 +12:00 committed by Andreas Kling
parent 16b43ed03e
commit 6acce60393
Notes: sideshowbarker 2024-07-17 07:20:49 +09:00

View file

@ -563,8 +563,8 @@ URL URLParser::parse(StringView raw_input, Optional<URL> 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;