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:
parent
795609c953
commit
9865911bff
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue