From d2859d5cee9235cc8144c0a455d60d6d974f90fb Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 5 Mar 2018 18:16:12 +0100 Subject: [PATCH] * Mail: Fix "tel:" href links wrongly get denied by mail compose --- api/src/Html/HtmLawed.php | 2 +- api/src/Mail.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Html/HtmLawed.php b/api/src/Html/HtmLawed.php index a5710ab2ff..19379e4717 100644 --- a/api/src/Html/HtmLawed.php +++ b/api/src/Html/HtmLawed.php @@ -92,7 +92,7 @@ class HtmLawed 'tidy'=>0, 'elements' => "* -script", 'deny_attribute' => 'on*', - 'schemes'=>'href: file, ftp, http, https, mailto; src: cid, data, file, ftp, http, https; *:file, http, https', + 'schemes'=>'href: file, ftp, http, https, mailto, tel, phone; src: cid, data, file, ftp, http, https; *:file, http, https', 'hook_tag' =>"hl_my_tag_transform", ); $this->Spec = 'img=alt(noneof="image"/default="")'; diff --git a/api/src/Mail.php b/api/src/Mail.php index 4248ca04da..4a9fcadcce 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -143,7 +143,7 @@ class Mail 'tidy'=>0, 'elements' => "* -script", 'deny_attribute' => 'on*', - 'schemes'=>'href: file, ftp, http, https, mailto, phone; src: cid, data, file, ftp, http, https; *:file, http, https, cid, src', + 'schemes'=>'href: file, ftp, http, https, mailto, phone, tel; src: cid, data, file, ftp, http, https; *:file, http, https, cid, src', 'hook_tag' =>"hl_email_tag_transform", );