WordPress.org

Make WordPress Core

Changeset 24870


Ignore:
Timestamp:
07/29/2013 05:59:31 PM (6 years ago)
Author:
nacin
Message:

Limit pingback response size. fixes #4137.

File:
1 edited

Legend:

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

    r24731 r24870  
    53905390
    53915391        // Let's check the remote site
    5392         $linea = wp_remote_retrieve_body( wp_remote_get( $pagelinkedfrom, array( 'timeout' => 10, 'redirection' => 0, 'reject_unsafe_urls' => true ) ) );
     5392        $http_api_args = array(
     5393            'timeout' => 10,
     5394            'redirection' => 0,
     5395            'reject_unsafe_urls' => true,
     5396            'limit_response_size' => 153600, // 150 KB
     5397        );
     5398        $linea = wp_remote_retrieve_body( wp_remote_get( $pagelinkedfrom, $http_api_args ) );
    53935399
    53945400        if ( !$linea )
Note: See TracChangeset for help on using the changeset viewer.