Make WordPress Core

Changeset 21719


Ignore:
Timestamp:
09/04/2012 03:37:29 AM (12 years ago)
Author:
nacin
Message:

Properly delimit URLs by \r, \n, \t *or* a space in sanitize_trackback_urls(). Fixes multiple trackback URL usage. props SergeyBiryukov, fixes #21624 for the 3.4 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/wp-includes/formatting.php

    r20944 r21719  
    32373237 */
    32383238function sanitize_trackback_urls( $to_ping ) {
    3239     $urls_to_ping = preg_split( '/\r\n\t /', trim( $to_ping ), -1, PREG_SPLIT_NO_EMPTY );
     3239    $urls_to_ping = preg_split( '/[\r\n\t ]/', trim( $to_ping ), -1, PREG_SPLIT_NO_EMPTY );
    32403240    foreach ( $urls_to_ping as $k => $url ) {
    32413241        if ( !preg_match( '#^https?://.#i', $url ) )
Note: See TracChangeset for help on using the changeset viewer.