mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
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:
parent
16b43ed03e
commit
6acce60393
Notes:
sideshowbarker
2024-07-17 07:20:49 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/6acce60393 Pull-request: https://github.com/SerenityOS/serenity/pull/19787
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue