Skip to content

Commit

Permalink
security fix to pixidou editor
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Sep 14, 2016
1 parent e916702 commit c1092f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions framework/modules/pixidou/controllers/pixidouController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ function editor() {
}

public function exitEditor() {

//eDebug($this->params,true);
// clean up parameters
$this->params['fid'] = intval($this->params['fid']);
if (!empty($this->params['cpi']) && strpos($this->params['cpi'], '..') !== false) {
$this->params['exitType'] = 'error';
}
switch ($this->params['exitType']) {
case 'saveAsCopy':
$oldimage = new expFile($this->params['fid']);
Expand Down

0 comments on commit c1092f1

Please sign in to comment.