MDL-70290 core: HTMLPurifier upgrade to 4.13.0

This commit is contained in:
Peter Dias
2021-01-14 07:59:10 +08:00
parent dab0910676
commit a14ee586d8
11 changed files with 36 additions and 49 deletions
@@ -69,7 +69,13 @@ class HTMLPurifier_AttrDef_CSS_Number extends HTMLPurifier_AttrDef
return false;
}
$left = ltrim($left, '0');
// Remove leading zeros until positive number or a zero stays left
if (ltrim($left, '0') != '') {
$left = ltrim($left, '0');
} else {
$left = '0';
}
$right = rtrim($right, '0');
if ($right === '') {