From e7ecb7ad81077eb129da67d79e1839ce70aba02b Mon Sep 17 00:00:00 2001 From: Donncha O Caoimh Date: Wed, 20 Oct 2004 15:07:49 +0000 Subject: [PATCH] Make checking enclosure URLs much faster - fclose() after blank line in response. git-svn-id: https://develop.svn.wordpress.org/trunk@1820 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b1add00d47..8a3eafc2ea 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -816,7 +816,7 @@ function do_enclose( $content, $post_ID ) { if( $fp ) { fputs($fp, $headers ); $response = ''; - while (!feof($fp)) + while ( !feof($fp) && strpos( $response, "\r\n\r\n" ) == false ) $response .= fgets($fp, 2048); fclose( $fp ); } else {