Make WordPress Core


Ignore:
Timestamp:
07/31/2013 06:53:06 AM (11 years ago)
Author:
nacin
Message:

Use wp_safe_remote_request() and friends instead of reject_unsafe_urls = true.

Merges [24917] to the 3.6 branch.
fixes #24646.

Location:
branches/3.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.6

  • branches/3.6/wp-includes/class-wp-xmlrpc-server.php

    r24870 r24918  
    53935393            'timeout' => 10,
    53945394            'redirection' => 0,
    5395             'reject_unsafe_urls' => true,
    53965395            'limit_response_size' => 153600, // 150 KB
    53975396        );
    5398         $linea = wp_remote_retrieve_body( wp_remote_get( $pagelinkedfrom, $http_api_args ) );
     5397        $linea = wp_remote_retrieve_body( wp_safe_remote_get( $pagelinkedfrom, $http_api_args ) );
    53995398
    54005399        if ( !$linea )
Note: See TracChangeset for help on using the changeset viewer.