mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +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
Notes:
sideshowbarker
2024-07-17 16:42:19 +09:00
Author: https://github.com/davidgannerud 🔰
Commit: eea012472e
Pull-request: https://github.com/SerenityOS/serenity/pull/16583
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/awesomekling ✅
Reviewed-by: https://github.com/linusg
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ public:
|
|||
|
||||
void load(AK::URL const& url)
|
||||
{
|
||||
if (!url.is_valid())
|
||||
return;
|
||||
|
||||
page().load(url);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue