1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibWeb: Fix logic typo in URL::parse()

I couldn't find a way to hit this function with our current testing
infrastructure, but since it breaks many websites, let's just get a
fix in immediately.

Regressed in 6fecd8cc44.
This commit is contained in:
Andreas Kling 2023-07-17 09:48:24 +02:00
parent 8dd489da61
commit eb1f61f3b1

View file

@ -499,7 +499,7 @@ AK::URL parse(StringView input, Optional<AK::URL> const& base_url)
auto url = URLParser::basic_parse(input, base_url);
// 2. If url is failure, return failure.
if (url.is_valid())
if (!url.is_valid())
return {};
// 3. If urls scheme is not "blob",