]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/rss.php
Wordpress 3.5.2
[autoinstalls/wordpress.git] / wp-includes / rss.php
index 0d94937685907c0a010989f29f1feedbbe0058e8..3b8e4de945f9dece78dedd9bae476f1a34d2fba9 100644 (file)
@@ -536,7 +536,7 @@ endif;
  * @return Snoopy style response
  */
 function _fetch_remote_file($url, $headers = "" ) {
  * @return Snoopy style response
  */
 function _fetch_remote_file($url, $headers = "" ) {
-       $resp = wp_remote_request($url, array('headers' => $headers, 'timeout' => MAGPIE_FETCH_TIME_OUT));
+       $resp = wp_remote_request($url, array('headers' => $headers, 'timeout' => MAGPIE_FETCH_TIME_OUT, 'reject_unsafe_urls' => true ));
        if ( is_wp_error($resp) ) {
                $error = array_shift($resp->errors);
 
        if ( is_wp_error($resp) ) {
                $error = array_shift($resp->errors);