Ladybird: Prevent loading of invalid URL

Loading invalid URL will result in a crash.
This commit is contained in:
David Gannerud 2022-07-08 12:19:11 +02:00 committed by Andrew Kaster
parent b97c74331c
commit eea012472e
Notes: sideshowbarker 2024-07-17 16:42:19 +09:00

View file

@ -80,6 +80,9 @@ public:
void load(AK::URL const& url)
{
if (!url.is_valid())
return;
page().load(url);
}