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

git-svn-id: https://develop.svn.wordpress.org/trunk@3444 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2006-01-16 23:02:27 +00:00
parent cbcdd4cbb0
commit f3a9342825
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',