Make WordPress Core


Ignore:
Timestamp:
07/31/2013 06:52:13 AM (12 years ago)
Author:
nacin
Message:

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

fixes #24646.

File:
1 edited

Legend:

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

    r24480 r24917  
    7070                'timeout' => $this->timeout,
    7171                'redirection' => $this->redirects,
    72                 'reject_unsafe_urls' => true,
    7372            );
    7473
     
    7978                $args['user-agent'] = $this->useragent;
    8079
    81             $res = wp_remote_request($url, $args);
     80            $res = wp_safe_remote_request($url, $args);
    8281
    8382            if ( is_wp_error($res) ) {
Note: See TracChangeset for help on using the changeset viewer.