Make WordPress Core


Ignore:
Timestamp:
02/13/2010 12:11:23 AM (15 years ago)
Author:
dd32
Message:

Strip out multiple slashes on non-post URL's. See #8948

File:
1 edited

Legend:

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

    r12980 r13072  
    256256    }
    257257
     258    // Strip multiple slashes out of the URL
     259    if ( strpos($original['path'], '//') > -1 )
     260        $redirect['path'] = preg_replace('|/+|', '/', $original['path']);
     261
    258262    // Always trailing slash the Front Page URL
    259263    if ( trailingslashit( $redirect['path'] ) == trailingslashit( $user_home['path'] ) )
Note: See TracChangeset for help on using the changeset viewer.