Skip to content

Commit

Permalink
Fixed issue: Security problems with uploaded files in administration
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Mar 9, 2013
1 parent 85d05f5 commit 9b5f845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/questiongroup.php
Expand Up @@ -47,7 +47,7 @@ function import()
$importgroup .= "\n";

$sFullFilepath = Yii::app()->getConfig('tempdir') . DIRECTORY_SEPARATOR . randomChars(20);
$aPathInfo = pathinfo($sFullFilepath);
$aPathInfo = pathinfo($_FILES['the_file']['name']);
$sExtension = $aPathInfo['extension'];

if (!@move_uploaded_file($_FILES['the_file']['tmp_name'], $sFullFilepath))
Expand Down

0 comments on commit 9b5f845

Please sign in to comment.