From 2bef1de2b95996363dc7ec37a1df13f4898c0f68 Mon Sep 17 00:00:00 2001 From: donncha 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: http://svn.automattic.com/wordpress/trunk@1820 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 b1add00d4..8a3eafc2e 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 {