mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:07:44 +00:00
Ladybird: Prevent loading of invalid URL
Loading invalid URL will result in a crash.
This commit is contained in:
parent
b97c74331c
commit
eea012472e
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ public:
|
||||||
|
|
||||||
void load(AK::URL const& url)
|
void load(AK::URL const& url)
|
||||||
{
|
{
|
||||||
|
if (!url.is_valid())
|
||||||
|
return;
|
||||||
|
|
||||||
page().load(url);
|
page().load(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue