mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
LibWebView: Fix sanitizing about scheme URLs
This commit is contained in:
parent
cde14901bc
commit
63c6eae918
2 changed files with 18 additions and 1 deletions
|
@ -35,7 +35,7 @@ static Optional<URL> create_url_with_url_or_path(String const& url_or_path)
|
|||
static Optional<URL> query_public_suffix_list(StringView url_string)
|
||||
{
|
||||
auto out = MUST(String::from_utf8(url_string));
|
||||
if (!out.contains("://"sv))
|
||||
if (!out.starts_with_bytes("about:"sv) && !out.contains("://"sv))
|
||||
out = MUST(String::formatted("https://{}"sv, out));
|
||||
|
||||
auto maybe_url = create_url_with_url_or_path(out);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue