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:
Ryan Boren 2006-01-30 22:03:06 +00:00
parent d777efb7b0
commit 2f46d64518
1 changed files with 1 additions and 1 deletions

View File

@ -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