diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-29 20:17:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-29 20:17:10 +0000 |
commit | 2d0df351d704ba34d191831f7d4b8cb385555be2 (patch) | |
tree | b18d02dfa6d075ff540eeffc4ab38393e53a3da0 /modules/upload | |
parent | 236da7af059e6cf3aba6e8ec923e082b1f8fe143 (diff) | |
download | brdo-2d0df351d704ba34d191831f7d4b8cb385555be2.tar.gz brdo-2d0df351d704ba34d191831f7d4b8cb385555be2.tar.bz2 |
- Various fixes. Updated CHANGELOG.txt
Diffstat (limited to 'modules/upload')
-rw-r--r-- | modules/upload/upload.module | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 195e9d677..79254ba83 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -208,14 +208,6 @@ function upload_nodeapi(&$node, $op, $arg) { } } - // Rename possibly executable scripts to prevent accidental execution. - // Uploaded files are attachments and should be shown in their original - // form, rather than run. - if (preg_match('/\.(php|pl|py|cgi|asp)$/i', $file->filename)) { - $file->filename .= '.txt'; - $file->filemime = 'text/plain'; - } - if ($error['extension'] == count($user->roles) && $user->uid != 1) { form_set_error('upload', t('The selected file %name can not be attached to this post, because it is only possible to attach files with the following extensions: %files-allowed.', array('%name' => theme('placeholder', $file->filename), '%files-allowed' => theme('placeholder', $extensions)))); } |