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 {