mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-10 13:09: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;
|
||||
if (!MemCmp(href, "javascript:", 11))
|
||||
return href;
|
||||
if (!MemCmp(href, "mailto:", 7))
|
||||
return StrNew(href, renderer->task);
|
||||
HttpUrl* url = @expand_url_from_string(renderer->task, renderer->current_url, href);
|
||||
if (!url)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user