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:
parent
cbcdd4cbb0
commit
f3a9342825
@ -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
Block a user