summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-11 02:58:40 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-11 02:58:40 +0000
commit4748ac2c4ff8c1477dc071ea12c57817834aee12 (patch)
treeb9610ca5ffece5019115bbda5522255e1f7af56b
parent7e02f2f782418d3452bae636e63e3439e9802336 (diff)
downloadbrdo-4748ac2c4ff8c1477dc071ea12c57817834aee12.tar.gz
brdo-4748ac2c4ff8c1477dc071ea12c57817834aee12.tar.bz2
#319328: SA-2008-060 (#318706): File upload access bypass.
-rw-r--r--modules/upload/upload.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 0c8e79227..4fceaa6ab 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -184,7 +184,7 @@ function upload_node_form_submit($form, &$form_state) {
);
// Save new file uploads.
- if (($user->uid != 1 || user_access('upload files')) && ($file = file_save_upload('upload', $validators, file_directory_path()))) {
+ if (user_access('upload files') && ($file = file_save_upload('upload', $validators, file_directory_path()))) {
$file->list = variable_get('upload_list_default', 1);
$file->description = $file->filename;
$file->weight = 0;