MDL-11413 improved text cleaning (problem reported by Andreas Nolden); backported from HEAD
This commit is contained in:
@@ -1752,6 +1752,7 @@ function cleanAttributes2($htmlArray){
|
||||
$value = kses_decode_entities($value);
|
||||
$value = preg_replace('/(&#[0-9]+)(;?)/', "\\1;", $value);
|
||||
$value = preg_replace('/(&#x[0-9a-fA-F]+)(;?)/', "\\1;", $value);
|
||||
$value = str_replace(':', ':', $value);
|
||||
if ($value === $prevvalue) {
|
||||
$arreach['value'] = $value;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user