Ticket #21624: 21624.patch
File 21624.patch, 677 bytes (added by , 13 years ago) |
---|
-
wp-includes/formatting.php
3235 3235 * @return string URLs starting with the http or https protocol, separated by a carriage return. 3236 3236 */ 3237 3237 function sanitize_trackback_urls( $to_ping ) { 3238 $urls_to_ping = preg_split( '/ \r\n\t/', trim( $to_ping ), -1, PREG_SPLIT_NO_EMPTY );3238 $urls_to_ping = preg_split( '/[\r\n\t ]+/', trim( $to_ping ), -1, PREG_SPLIT_NO_EMPTY ); 3239 3239 foreach ( $urls_to_ping as $k => $url ) { 3240 3240 if ( !preg_match( '#^https?://.#i', $url ) ) 3241 3241 unset( $urls_to_ping[$k] );