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
This commit is contained in:
donncha 2004-10-20 15:07:49 +00:00
parent 279385f199
commit 2bef1de2b9
1 changed files with 1 additions and 1 deletions

View File

@ -816,7 +816,7 @@ function do_enclose( $content, $post_ID ) {
if( $fp ) { if( $fp ) {
fputs($fp, $headers ); fputs($fp, $headers );
$response = ''; $response = '';
while (!feof($fp)) while ( !feof($fp) && strpos( $response, "\r\n\r\n" ) == false )
$response .= fgets($fp, 2048); $response .= fgets($fp, 2048);
fclose( $fp ); fclose( $fp );
} else { } else {