Make WordPress Core

Changeset 24871


Ignore:
Timestamp:
07/29/2013 06:00:06 PM (11 years ago)
Author:
nacin
Message:

Limit pingback response size. fixes #4137. for trunk.

File:
1 edited

Legend:

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

    r24731 r24871  
    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.