1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

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

View file

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