Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
spip
safehtml
Commits
b18d10b4
Commit
b18d10b4
authored
Oct 09, 2022
by
Matthieu Marcillaud
Browse files
fix: Le sanitizer n’est plus dans medias mais dans safehtml suite à
190c63ee
parent
02d3e571
Changes
1
Hide whitespace changes
Inline
Side-by-side
sanitizer/svg.php
View file @
b18d10b4
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment