Don't allow uploading PHP files, fixes #2300.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2006-01-16 23:02:27 +00:00
parent 795609c953
commit 9865911bff
1 changed files with 1 additions and 1 deletions

View File

@ -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',