From 2f46d645183e1066c15f95e18ed1b7458934b94b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 30 Jan 2006 22:03:06 +0000 Subject: [PATCH] Remove execute bit from uploaded files. #2190 git-svn-id: https://develop.svn.wordpress.org/trunk@3501 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 23eade17a7..49004dd179 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -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