From f3a93428259081b3026db6e66ef53ef602b90cc0 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 16 Jan 2006 23:02:27 +0000 Subject: [PATCH] Don't allow uploading PHP files, fixes #2300. git-svn-id: https://develop.svn.wordpress.org/trunk@3444 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 d2f4c14adb..1964dfb38f 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -1670,7 +1670,7 @@ function wp_handle_upload(&$file, $overrides = false) { 'avi' => 'video/avi', 'mov|qt' => 'video/quicktime', 'mpeg|mpg|mpe' => 'video/mpeg', - 'txt|c|cc|h|php' => 'text/plain', + 'txt|c|cc|h' => 'text/plain', 'rtx' => 'text/richtext', 'css' => 'text/css', 'htm|html' => 'text/html',