summaryrefslogtreecommitdiff
path: root/modules/upload
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-21 11:44:46 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-21 11:44:46 +0000
commit26612e9cbdf17902662fb345f7bdd9fe3b8accc0 (patch)
treeaf8a5c48a6fbb235f84ec345eb4c256f545433c5 /modules/upload
parentd12faf546d25dbae58654b8e52c403b00a2f8bcc (diff)
downloadbrdo-26612e9cbdf17902662fb345f7bdd9fe3b8accc0.tar.gz
brdo-26612e9cbdf17902662fb345f7bdd9fe3b8accc0.tar.bz2
#54298, Only user = 1 can upload files, patch by dopry
Diffstat (limited to 'modules/upload')
-rw-r--r--modules/upload/upload.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 5c50bc8a1..a5f624ab6 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -249,6 +249,8 @@ function _upload_validate(&$node) {
if (is_array($node->files)) {
// Update existing files with form data.
foreach($node->files as $fid => $file) {
+ // Convert file to object for compatability
+ $file = (object)$file;
// Validate new uploads.
if (strpos($fid, 'upload') !== false && !$file->remove) {