WordPress.org

Make WordPress Core

Changeset 8324


Ignore:
Timestamp:
07/13/2008 05:16:54 AM (13 years ago)
Author:
ryan
Message:

Workaround PHP parse_url() bug. Props azaozz. fixes #7288

File:
1 edited

Legend:

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

    r8209 r8324  
    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.