Seperate enclosure URLs by 1 space, not 3.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
donncha 2004-10-14 14:22:40 +00:00
parent 62ea5faef5
commit f9823fb53c
1 changed files with 2 additions and 6 deletions

View File

@ -379,7 +379,7 @@ $now_gmt = current_time('mysql', 1);
}
// Enclosures
$enclosures = split( " ", $enclosure_url );
$enclosures = split( " ", $enclosure_url );
if( is_array( $enclosures ) ) {
while( list( $key, $url ) = each( $enclosures ) ) {
if( $url != '' ) {
@ -390,13 +390,9 @@ $now_gmt = current_time('mysql', 1);
$headers = "HEAD $file HTTP/1.1\r\nHOST: $host\r\n\r\n";
$port = 80;
$timeout = 3;
// Open a socket connection to the host
$fp = fsockopen($host, $port, $err_num, $err_msg, $timeout);
$fp = fsockopen($host, $port, &$err_num, &$err_msg, $timeout);
if( $fp ) {
// Send request for the page
fputs($fp, $headers );
// Get the response
$response = '';
while (!feof($fp))
$response .= fgets($fp, 2048);