Changeset 1820

Show
Ignore:
Timestamp:
10/20/04 15:07:49 (4 years ago)
Author:
donncha
Message:

Make checking enclosure URLs much faster - fclose() after blank line in response.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions.php

    r1818 r1820  
    817817                        fputs($fp, $headers ); 
    818818                        $response = ''; 
    819                         while (!feof($fp)
     819                        while ( !feof($fp) && strpos( $response, "\r\n\r\n" ) == false
    820820                            $response .= fgets($fp, 2048); 
    821821                        fclose( $fp );