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:
ryan 2006-01-30 22:03:06 +00:00
parent 537e956fbc
commit 4f895adff7
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
$stat = stat(dirname($new_file));
$perms = $stat['mode'] & 0000777;
$perms = $stat['mode'] & 0000666;
@ chmod($new_file, $perms);
// Compute the URL