* Mail: Fix "tel:" href links wrongly get denied by mail compose

This commit is contained in:
Hadi Nategh 2018-03-05 18:16:12 +01:00
parent 53b97078ad
commit d2859d5cee
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class HtmLawed
'tidy'=>0, 'tidy'=>0,
'elements' => "* -script", 'elements' => "* -script",
'deny_attribute' => 'on*', '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", 'hook_tag' =>"hl_my_tag_transform",
); );
$this->Spec = 'img=alt(noneof="image"/default="")'; $this->Spec = 'img=alt(noneof="image"/default="")';

View File

@ -143,7 +143,7 @@ class Mail
'tidy'=>0, 'tidy'=>0,
'elements' => "* -script", 'elements' => "* -script",
'deny_attribute' => 'on*', '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", 'hook_tag' =>"hl_email_tag_transform",
); );