Ticket #41304: fix_41304_patch.diff
File fix_41304_patch.diff, 820 bytes (added by , 7 years ago) |
---|
-
wp-includes/kses.php
1321 1321 * @return string Sanitized content 1322 1322 */ 1323 1323 function wp_kses_bad_protocol_once($string, $allowed_protocols, $count = 1 ) { 1324 $string2 = preg_split( '/:|�*58;|�*3a;/i', $string, 2 );1324 $string2 = preg_split( '/(:\/\/)|�*58;|�*3a;/i', $string, 2 ); 1325 1325 if ( isset($string2[1]) && ! preg_match('%/\?%', $string2[0]) ) { 1326 1326 $string = trim( $string2[1] ); 1327 1327 $protocol = wp_kses_bad_protocol_once2( $string2[0], $allowed_protocols ); … … 1332 1332 if ( empty( $string ) ) 1333 1333 return $string; 1334 1334 } 1335 $string = $protocol. $string;1335 $string = $protocol . '//' . $string; 1336 1336 } 1337 1337 1338 1338 return $string;