Use binary mode for fopen in download_url()

git-svn-id: https://develop.svn.wordpress.org/trunk@10048 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-12-04 21:47:45 +00:00
parent e6fd9a5a97
commit 2e8d387c34

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'));