Skip to content

Commit

Permalink
Allow mailto, callto schemes by default
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDPC committed May 10, 2021
1 parent 7ae95c1 commit 95af2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/ContentSanitiser.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static function generateConfig() : array {
'Core.Encoding' => 'UTF-8',
'HTML.AllowedElements' => self::getAllowedHTMLTagsAsArray(),
'HTML.AllowedAttributes' => ['href'],
'URI.AllowedSchemes' => ['http','https'],
'URI.AllowedSchemes' => ['http','https','mailto','callto'],
'Attr.ID.HTML5' => true
];
}
Expand Down

0 comments on commit 95af2db

Please sign in to comment.