Skip to content

Commit

Permalink
prevent swf/flash uploads in elFinder to prevent malicious code uploa…
Browse files Browse the repository at this point in the history
…d; reported by DM_
  • Loading branch information
dleffler committed Nov 3, 2016
1 parent 6172f67 commit b276cf4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framework/modules/file/connector/elfinder.php
Expand Up @@ -226,7 +226,7 @@ protected function write($log, $eol=false)
}
}

} // END class
} // END class
//$logger = new elFinderSimpleLogger(BASE.'tmp/elfinder.log');

/**
Expand Down Expand Up @@ -279,7 +279,7 @@ public function fsAccess($attr, $path, $data, $volume)
return true;
}

} // END class
} // END class
//$acl = new elFinderTestACL();

/**
Expand Down Expand Up @@ -370,9 +370,9 @@ function validName($name)
'accessControl' => 'access',
// 'accessControl' => array($acl, 'fsAccess'),
// 'accessControlData' => array('uid' => 1),
'uploadDeny' => array('all'),
'uploadAllow' => array('all'),
'uploadOrder' => 'deny,allow',
'uploadDeny' => array('application/x-shockwave-flash'),
'uploadOrder' => 'allow,deny',
'uploadOverwrite' => true,
// 'uploadMaxSize' => '128m',
// 'copyOverwrite' => false,
Expand Down

0 comments on commit b276cf4

Please sign in to comment.