Remove execute bit from uploaded files. #2190
git-svn-id: https://develop.svn.wordpress.org/trunk@3501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d777efb7b0
commit
2f46d64518
|
@ -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