Make WordPress Core

Changeset 14134


Ignore:
Timestamp:
04/18/2010 04:58:19 AM (14 years ago)
Author:
dd32
Message:

Bail from WP_HTTP when a invalid URL is provided. Fixes #12964

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r14129 r14134  
    240240
    241241        $arrURL = parse_url($url);
     242
     243        if ( empty( $url ) || empty($url['scheme'] ) )
     244            return new WP_Error('http_request_failed', __('A valid URL was not provided.'));
    242245
    243246        if ( $this->block_request( $url ) )
Note: See TracChangeset for help on using the changeset viewer.