Skip to content

Commit

Permalink
Fixed issue #11964: token in Survey URL ignored when CAPTCHA is enabl…
Browse files Browse the repository at this point in the history
…ed; user must manually enter token
  • Loading branch information
LouisGac committed Dec 6, 2016
1 parent 54a2cce commit 6425d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/frontend_helper.php
Expand Up @@ -1023,7 +1023,7 @@ function buildsurveysession($surveyid,$preview=false)
// Scenario => Token required
if ($scenarios['tokenRequired'] && !$preview){
//Test if token is valid
list($renderToken, $FlashError) = testIfTokenIsValid($subscenarios, $thissurvey, $aEnterTokenData, $clienttoken);
list($renderToken, $FlashError, $aEnterTokenData) = testIfTokenIsValid($subscenarios, $thissurvey, $aEnterTokenData, $clienttoken);
}

//If there were errors, display through yii->FlashMessage
Expand Down Expand Up @@ -1569,7 +1569,7 @@ function testIfTokenIsValid(array $subscenarios, array $thissurvey, array $aEnte
$aEnterTokenData['token'] = $clienttoken;
$renderToken='correct';
}
return array($renderToken, $FlashError);
return array($renderToken, $FlashError, $aEnterTokenData);
}

/**
Expand Down

0 comments on commit 6425d2a

Please sign in to comment.