1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-25 15:22:24 +01:00

Fix link ammessi

This commit is contained in:
Thomas Zilio 2019-09-23 11:10:37 +02:00
parent 9bfdf3ee41
commit d01377e984
2 changed files with 9 additions and 2 deletions

View File

@ -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);
}

View File

@ -2,8 +2,8 @@
namespace HTMLBuilder\Manager;
use Modules\Emails\Mail;
use Modules;
use Modules\Emails\Mail;
/**
* Gestione allegati.