[moodle] / moodle / lib / kses.php Repository:

Diff of /moodle/lib/kses.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3.2.2, Fri Feb 29 06:03:35 2008 WST revision 1.3.2.3, Sat Mar 1 22:13:14 2008 WST

By skodak:

MDL-13705

# Line 469  Line 469 
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                        '(:|&#0*58;|&#[Xx]0*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.2.2  
changed lines
  Added in v.1.3.2.3

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7