Skip to content

Commit

Permalink
Fixed issue #12263: Error when uploading additional file in template …
Browse files Browse the repository at this point in the history
…editor
  • Loading branch information
c-schmitz committed Apr 19, 2017
1 parent 2a66073 commit 99c34b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/templates.php
Expand Up @@ -293,7 +293,7 @@ public function uploadfile()
$basedestdir = Yii::app()->getConfig('usertemplaterootdir');
$tempdir = Yii::app()->getConfig('tempdir');
$allowedtemplateuploads=Yii::app()->getConfig('allowedtemplateuploads');
$filename=sanitize_filename($_FILES['upload_file']['name'],false,false);// Don't force lowercase or alphanumeric
$filename=sanitize_filename($_FILES['upload_file']['name'],false,false,false);// Don't force lowercase or alphanumeric

$dirfilepath = $oEditedTemplate->filesPath;
if (!file_exists($dirfilepath))
Expand Down

0 comments on commit 99c34b1

Please sign in to comment.