Skip to content

Commit

Permalink
Remove execute bit from uploaded files. #2190
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@3501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Jan 30, 2006
1 parent 537e956 commit 4f895ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-admin/admin-functions.php
Expand Up @@ -1766,7 +1766,7 @@ function wp_handle_upload_error(&$file, $message) {

// Set correct file permissions
$stat = stat(dirname($new_file));
$perms = $stat['mode'] & 0000777;
$perms = $stat['mode'] & 0000666;
@ chmod($new_file, $perms);

// Compute the URL
Expand Down

0 comments on commit 4f895ad

Please sign in to comment.