mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +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
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…
Add table
Add a link
Reference in a new issue