Make WordPress Core

Ticket #21624: 21624.patch

File 21624.patch, 677 bytes (added by SergeyBiryukov, 13 years ago)
  • wp-includes/formatting.php

     
    32353235 * @return string URLs starting with the http or https protocol, separated by a carriage return.
    32363236 */
    32373237function 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 );
    32393239        foreach ( $urls_to_ping as $k => $url ) {
    32403240                if ( !preg_match( '#^https?://.#i', $url ) )
    32413241                        unset( $urls_to_ping[$k] );