Update composer dependencies

This commit is contained in:
Kijin Sung 2021-01-06 21:42:06 +09:00
parent bb9a56bcac
commit aabc7ac55e
690 changed files with 61555 additions and 37954 deletions

View file

@ -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 === '') {