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
This commit is contained in:
Donncha O Caoimh 2004-10-20 15:07:49 +00:00
parent a7f2ca457b
commit e7ecb7ad81
1 changed files with 1 additions and 1 deletions

View File

@ -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 {