mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-11 13:39:55 +02:00
System/Libraries/Html/Renderer: Support mailto: protocol handler in @resolve_href()
This commit is contained in:
@@ -259,6 +259,8 @@ U8* @resolve_href(HtmlRenderer* renderer, U8* href)
|
|||||||
return NULL;
|
return NULL;
|
||||||
if (!MemCmp(href, "javascript:", 11))
|
if (!MemCmp(href, "javascript:", 11))
|
||||||
return href;
|
return href;
|
||||||
|
if (!MemCmp(href, "mailto:", 7))
|
||||||
|
return StrNew(href, renderer->task);
|
||||||
HttpUrl* url = @expand_url_from_string(renderer->task, renderer->current_url, href);
|
HttpUrl* url = @expand_url_from_string(renderer->task, renderer->current_url, href);
|
||||||
if (!url)
|
if (!url)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user