diff --git a/src/Filter.php b/src/Filter.php index 46cd30dcd..57daf6ab3 100644 --- a/src/Filter.php +++ b/src/Filter.php @@ -160,7 +160,14 @@ class Filter //$config->set('Cache.SerializerPath', realpath(__DIR__.'/cache/HTMLPurifier')); $config->set('Cache.DefinitionImpl', null); - $config->set('URI.AllowedSchemes', ['data' => true]); + $config->set('URI.AllowedSchemes', [ + 'http' => true, + 'https' => true, + 'mailto' => true, + 'ftp' => true, + 'tel' => true, + 'data' => true, + ]); self::$purifier = new \HTMLPurifier($config); } diff --git a/src/HTMLBuilder/Manager/EmailManager.php b/src/HTMLBuilder/Manager/EmailManager.php index d15499251..3d5c476a1 100644 --- a/src/HTMLBuilder/Manager/EmailManager.php +++ b/src/HTMLBuilder/Manager/EmailManager.php @@ -2,8 +2,8 @@ namespace HTMLBuilder\Manager; -use Modules\Emails\Mail; use Modules; +use Modules\Emails\Mail; /** * Gestione allegati.