Limit pingback response size. fixes #4137. for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@24871 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fc12420861
commit
5a0e739cc7
@ -5389,7 +5389,13 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
sleep(1);
|
||||
|
||||
// Let's check the remote site
|
||||
$linea = wp_remote_retrieve_body( wp_remote_get( $pagelinkedfrom, array( 'timeout' => 10, 'redirection' => 0, 'reject_unsafe_urls' => true ) ) );
|
||||
$http_api_args = array(
|
||||
'timeout' => 10,
|
||||
'redirection' => 0,
|
||||
'reject_unsafe_urls' => true,
|
||||
'limit_response_size' => 153600, // 150 KB
|
||||
);
|
||||
$linea = wp_remote_retrieve_body( wp_remote_get( $pagelinkedfrom, $http_api_args ) );
|
||||
|
||||
if ( !$linea )
|
||||
return $this->pingback_error( 16, __( 'The source URL does not exist.' ) );
|
||||
|
Loading…
Reference in New Issue
Block a user