Changeset 7370 for trunk/wp-includes/kses.php
- Timestamp:
- 03/18/2008 01:53:36 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/kses.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/kses.php
r7337 r7370 833 833 global $_kses_allowed_protocols; 834 834 $_kses_allowed_protocols = $allowed_protocols; 835 return preg_replace_callback('/^((&[^;]*;|[\sA-Za-z0-9])*)'.'(:|:|&#[Xx]3[Aa];)\s*/', create_function('$matches', 'global $_kses_allowed_protocols; return wp_kses_bad_protocol_once2($matches[1], $_kses_allowed_protocols);'), $string); 835 836 $string2 = preg_split('/:|:|:/i', $string, 2); 837 if ( isset($string2[1]) && !preg_match('%/\?%', $string2[0]) ) 838 $string = wp_kses_bad_protocol_once2($string2[0], $allowed_protocols) . trim($string2[1]); 839 else 840 $string = preg_replace_callback('/^((&[^;]*;|[\sA-Za-z0-9])*)'.'(:|:|&#[Xx]3[Aa];)\s*/', create_function('$matches', 'global $_kses_allowed_protocols; return wp_kses_bad_protocol_once2($matches[1], $_kses_allowed_protocols);'), $string); 841 842 return $string; 836 843 } 837 844
Note: See TracChangeset
for help on using the changeset viewer.