WordPress.org

Make WordPress Core

Changeset 13878


Ignore:
Timestamp:
03/29/2010 04:47:17 PM (8 years ago)
Author:
ryan
Message:

Check for urls that have a scheme but no host in wp_validate_redirect().

File:
1 edited

Legend:

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

    r13769 r13878  
    991991        return $default;
    992992
     993    // Reject if scheme is set but host is not. This catches urls like https:host.com for which parse_url does not set the host field.
     994    if ( isset($lp['scheme'])  && !isset($lp['host']) )
     995        return $default;
     996
    993997    $wpp = parse_url(home_url());
    994998
Note: See TracChangeset for help on using the changeset viewer.