WordPress.org

Make WordPress Core

Changeset 21718


Ignore:
Timestamp:
09/04/12 03:36:19 (20 months 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 trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r21292 r21718  
    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 ) ) 
Note: See TracChangeset for help on using the changeset viewer.