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:
parent
781708a9ce
commit
6941ef0547
|
@ -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'));
|
||||
|
||||
|
|
Loading…
Reference in New Issue