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:
parent
8dd489da61
commit
eb1f61f3b1
1 changed files with 1 additions and 1 deletions
|
@ -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 url’s scheme is not "blob",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue