###############################################################################
{
return preg_replace('/^((&[^;]*;|[\sA-Za-z0-9])*)'.
- '(:|�*58;|&#[Xx]3[Aa];)\s*/e',
+ '(:|�*58;|&#[Xx]0*3[Aa];)\s*/e',
'kses_bad_protocol_once2("\\1", $allowed_protocols)',
$string);
} # function kses_bad_protocol_once
/// Remove tags that are not allowed
$text = strip_tags($text, $ALLOWED_TAGS);
- $text = str_replace(':', ':', $text);
/// Clean up embedded scripts and , using kses
$text = cleanAttributes($text);
$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); //better not have these characters in output at all
if ($value === $prevvalue) {
$arreach['value'] = $value;
break;