mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-11413 I hope now it is correct solution
This commit is contained in:
parent
e2fa911b73
commit
0352cd2ffa
2 changed files with 1 additions and 3 deletions
|
@ -1842,7 +1842,6 @@ function clean_text($text, $format=FORMAT_MOODLE) {
|
|||
|
||||
/// 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);
|
||||
|
@ -1939,7 +1938,6 @@ 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); //better not have these characters in output at all
|
||||
if ($value === $prevvalue) {
|
||||
$arreach['value'] = $value;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue