mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user