From 4f895adff700a3423e54bd5693fc7ca030fd1b67 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 30 Jan 2006 22:03:06 +0000 Subject: [PATCH] Remove execute bit from uploaded files. #2190 git-svn-id: http://svn.automattic.com/wordpress/trunk@3501 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 23eade17a..49004dd17 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