Browse Source

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

master
Matthieu Marcillaud 4 months ago
parent
commit
b18d10b496
  1. 2
      sanitizer/svg.php

2
sanitizer/svg.php

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

Loading…
Cancel
Save