Use binary mode for fopen in download_url()

git-svn-id: http://svn.automattic.com/wordpress/trunk@10048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-12-04 21:47:45 +00:00
parent 781708a9ce
commit 6941ef0547
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ function download_url( $url ) {
if ( ! $tmpfname )
return new WP_Error('http_no_file', __('Could not create Temporary file'));
$handle = @fopen($tmpfname, 'w');
$handle = @fopen($tmpfname, 'wb');
if ( ! $handle )
return new WP_Error('http_no_file', __('Could not create Temporary file'));