mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 02:32:44 +03:00
URLdb doesn't store 'mailto' urls, so add early exit to lookup.
This commit is contained in:
parent
8e0e72368e
commit
58d9c98017
@ -1219,6 +1219,12 @@ static struct path_data *urldb_find_url(nsurl *url)
|
|||||||
if (scheme == NULL)
|
if (scheme == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
if (lwc_string_isequal(scheme, corestring_lwc_mailto, &match) ==
|
||||||
|
lwc_error_ok && match == true) {
|
||||||
|
lwc_string_unref(scheme);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
host = nsurl_get_component(url, NSURL_HOST);
|
host = nsurl_get_component(url, NSURL_HOST);
|
||||||
if (host != NULL) {
|
if (host != NULL) {
|
||||||
host_str = lwc_string_data(host);
|
host_str = lwc_string_data(host);
|
||||||
|
Loading…
Reference in New Issue
Block a user