Diff of /moodle/lib/kses.php
Parent Directory
|
Revision Log
|
Patch
|
By skodak:
MDL-13705
|
| 469 |
# handling whitespace and HTML entities. |
# handling whitespace and HTML entities. |
| 470 |
############################################################################### |
############################################################################### |
| 471 |
{ |
{ |
| 472 |
return preg_replace('/^((&[^;]*;|[\sA-Za-z0-9])*)'. |
$string2 = preg_split('/:|:|:/i', $string, 2); |
| 473 |
'(:|�*58;|&#[Xx]3[Aa];)\s*/e', |
if(isset($string2[1]) && !preg_match('%/\?%',$string2[0])) |
| 474 |
'kses_bad_protocol_once2("\\1", $allowed_protocols)', |
{ |
| 475 |
$string); |
$string = kses_bad_protocol_once2($string2[0],$allowed_protocols).trim($string2[1]); |
| 476 |
|
} |
| 477 |
|
return $string; |
| 478 |
} # function kses_bad_protocol_once |
} # function kses_bad_protocol_once |
| 479 |
|
|
| 480 |
|
|
|
|
Legend:
| Removed from v.1.3 |
|
| changed lines |
| |
Added in v.1.3.2.3 |
|
|