mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -1766,7 +1766,7 @@ function wp_handle_upload(&$file, $overrides = false) {
|
||||
|
||||
// Set correct file permissions
|
||||
$stat = stat(dirname($new_file));
|
||||
$perms = $stat['mode'] & 0000777;
|
||||
$perms = $stat['mode'] & 0000666;
|
||||
@ chmod($new_file, $perms);
|
||||
|
||||
// Compute the URL
|
||||
|
||||
Reference in New Issue
Block a user