Commit b18d10b4 authored by Matthieu Marcillaud's avatar Matthieu Marcillaud
Browse files

fix: Le sanitizer n’est plus dans medias mais dans safehtml suite à 190c63ee

parent 02d3e571
......@@ -79,7 +79,7 @@ function sanitizer_svg_string($svg, $fileName = '') {
if (!class_exists('enshrined\svgSanitize\Sanitizer')) {
spl_autoload_register(function ($class) {
$prefix = 'enshrined\\svgSanitize\\';
$base_dir = _DIR_PLUGIN_MEDIAS . 'lib/svg-sanitizer/src/';
$base_dir = _DIR_PLUGIN_SAFEHTML . 'lib/svg-sanitizer/src/';
$len = strlen($prefix);
if (strncmp($prefix, $class, $len) !== 0) {
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment