Remove execute bit from uploaded files. #2190
git-svn-id: http://svn.automattic.com/wordpress/trunk@3501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
537e956fbc
commit
4f895adff7
|
@ -1766,7 +1766,7 @@ function wp_handle_upload(&$file, $overrides = false) {
|
||||||
|
|
||||||
// Set correct file permissions
|
// Set correct file permissions
|
||||||
$stat = stat(dirname($new_file));
|
$stat = stat(dirname($new_file));
|
||||||
$perms = $stat['mode'] & 0000777;
|
$perms = $stat['mode'] & 0000666;
|
||||||
@ chmod($new_file, $perms);
|
@ chmod($new_file, $perms);
|
||||||
|
|
||||||
// Compute the URL
|
// Compute the URL
|
||||||
|
|
Loading…
Reference in New Issue