AK: Correct logic in file state decrementing a path in URL basic parsing

This commit is contained in:
Shannon Booth 2023-07-04 21:06:58 +12:00 committed by Andreas Kling
parent 983441b67f
commit 4dd4ff68d3

View file

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