Make WordPress Core


Ignore:
Timestamp:
07/15/2008 02:01:08 AM (17 years ago)
Author:
mdawaffe
Message:

crazyhorse: merge with log:trunk@8240:8334

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-includes/pluggable.php

    r8242 r8335  
    828828        $location = 'http:' . $location;
    829829
    830     $lp  = parse_url($location);
     830    // In php 5 parse_url may fail if the URL query part contains http://, bug #38143
     831    $test = ( $cut = strpos($location, '?') ) ? substr( $location, 0, $cut ) : $location;
     832   
     833    $lp  = parse_url($test);
    831834    $wpp = parse_url(get_option('home'));
    832835
Note: See TracChangeset for help on using the changeset viewer.