Changeset 46915 for branches/5.0/src/wp-includes/kses.php
- Timestamp:
- 12/12/2019 06:51:11 PM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/kses.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
- Property svn:mergeinfo changed
/trunk merged: 46893-46896
- Property svn:mergeinfo changed
-
branches/5.0/src/wp-includes/kses.php
r46004 r46915 1409 1409 function wp_kses_bad_protocol_once($string, $allowed_protocols, $count = 1 ) { 1410 1410 $string = preg_replace( '/(�*58(?![;0-9])|�*3a(?![;a-f0-9]))/i', '$1;', $string ); 1411 $string2 = preg_split( '/:|�*58;|�*3a; /i', $string, 2 );1412 if ( isset( $string2[1]) && ! preg_match('%/\?%', $string2[0]) ) {1413 $string = trim( $string2[1] );1411 $string2 = preg_split( '/:|�*58;|�*3a;|:/i', $string, 2 ); 1412 if ( isset( $string2[1] ) && ! preg_match( '%/\?%', $string2[0] ) ) { 1413 $string = trim( $string2[1] ); 1414 1414 $protocol = wp_kses_bad_protocol_once2( $string2[0], $allowed_protocols ); 1415 1415 if ( 'feed:' == $protocol ) {
Note: See TracChangeset
for help on using the changeset viewer.