Skip to content

Commit

Permalink
Fixed issue #13428: Reflected XSS in file uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Feb 28, 2018
1 parent e2237c0 commit 1738c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/UploaderController.php
Expand Up @@ -37,7 +37,7 @@ function run($actionID)
$sFileName = Yii::app()->request->getParam('filename', ''); // The file to delete fu_ or fu_tmp
$sOriginalFileName = Yii::app()->request->getParam('name', ''); // Used for javascript return only
$sMode = Yii::app()->request->getParam('mode');
$sPreview = Yii::app()->request->getParam('preview', 0);
$sPreview = htmlspecialchars(Yii::app()->request->getParam('preview', 0));

// Validate and filter and throw error if problems
// Using 'futmp_'.randomChars(15).'_'.$pathinfo['extension'] for filename, then remove all other characters
Expand Down

0 comments on commit 1738c23

Please sign in to comment.