Skip to content

Commit

Permalink
Fixed issue: XSS filter for attributes is applied when the participan…
Browse files Browse the repository at this point in the history
…t is marked as completed or quota out
  • Loading branch information
c-schmitz committed Oct 6, 2016
1 parent bbb5965 commit 757b085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/frontend_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,8 @@ function submittokens($quotaexit=false)
$today = dateShift(date("Y-m-d H:i:s"), "Y-m-d H:i", Yii::app()->getConfig("timeadjust"));

// check how many uses the token has left
$token = Token::model($surveyid,'FinalSubmit')->findByAttributes(array('token' => $clienttoken));
$token = Token::model($surveyid)->findByAttributes(array('token' => $clienttoken));
$token->scenario = 'FinalSubmit'; // Do not XSS filter token data

if ($quotaexit==true)
{
Expand Down

0 comments on commit 757b085

Please sign in to comment.