mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
This commit is contained in:
@@ -48,10 +48,9 @@ abstract class HTMLSanitizer
|
|||||||
$sSanitizerClass = 'HTMLDOMSanitizer';
|
$sSanitizerClass = 'HTMLDOMSanitizer';
|
||||||
} else if (!is_subclass_of($sSanitizerClass, 'HTMLSanitizer')) {
|
} else if (!is_subclass_of($sSanitizerClass, 'HTMLSanitizer')) {
|
||||||
if ($sConfigKey === 'html_sanitizer') {
|
if ($sConfigKey === 'html_sanitizer') {
|
||||||
IssueLog::Warning('The configured "'.$sConfigKey.'" class "'.$sSanitizerClass.'" is not a subclass of HTMLSanitizer. Will use HTMLDOMSanitizer as the default sanitizer.');
|
IssueLog::Warning('The configured "'.$sConfigKey.'" class "'.$sSanitizerClass.'" is not a subclass of '.HTMLSanitizer::class.'. Will use HTMLDOMSanitizer as the default sanitizer.');
|
||||||
$sSanitizerClass = 'HTMLDOMSanitizer';
|
$sSanitizerClass = 'HTMLDOMSanitizer';
|
||||||
}
|
} else {
|
||||||
if ($sConfigKey === 'svg_sanitizer') {
|
|
||||||
IssueLog::Error('The configured "'.$sConfigKey.'" class "'.$sSanitizerClass.'" is not a subclass of '.HTMLSanitizer::class.' ! Won\'t sanitize string.');
|
IssueLog::Error('The configured "'.$sConfigKey.'" class "'.$sSanitizerClass.'" is not a subclass of '.HTMLSanitizer::class.' ! Won\'t sanitize string.');
|
||||||
|
|
||||||
return $sHTML;
|
return $sHTML;
|
||||||
|
|||||||
Reference in New Issue
Block a user