Make WordPress Core

Ticket #21841: 21841.patch

File 21841.patch, 587 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-includes/canonical.php

     
    294294        $redirect['query'] = preg_replace( '#^\??&*?#', '', $redirect['query'] );
    295295        if ( $redirect_url && !empty($redirect['query']) ) {
    296296                parse_str( $redirect['query'], $_parsed_query );
     297                $redirect_url = str_replace( '&', '&', $redirect_url );
    297298                $redirect = @parse_url($redirect_url);
    298299
    299300                if ( ! empty( $_parsed_query['name'] ) && ! empty( $redirect['query'] ) ) {