Skip to content

Commit

Permalink
Fixed issue #7908: When entering a protected survey password text fie…
Browse files Browse the repository at this point in the history
…ld is readable
  • Loading branch information
c-schmitz committed Jul 22, 2013
1 parent 19782c1 commit 59d29fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/helpers/frontend_helper.php
Expand Up @@ -1429,10 +1429,10 @@ function buildsurveysession($surveyid,$preview=false)
echo '<div id="wrapper"><p id="tokenmessage">'.$clang->gT("This is a controlled survey. You need a valid token to participate.")."<br />";
echo $clang->gT("If you have been issued a token, please enter it in the box below and click continue.")."</p>
<script type='text/javascript'>var focus_element='#token';</script>"
.CHtml::form(array("/survey/index/sid/{$surveyid}"), 'post', array('id'=>'tokenform'))."
.CHtml::form(array("/survey/index/sid/{$surveyid}"), 'post', array('id'=>'tokenform','autocomplete'=>'off'))."
<ul>
<li>";?>
<label for='token'><?php $clang->eT("Token:");?></label><input class='text <?php echo $kpclass?>' id='token' type='text' name='token' />
<label for='token'><?php $clang->eT("Token:");?></label><input class='text <?php echo $kpclass?>' id='token' type='password' name='token' value='' />
<?php
echo "<input type='hidden' name='sid' value='".$surveyid."' id='sid' />
<input type='hidden' name='lang' value='".$templang."' id='lang' />";
Expand Down Expand Up @@ -1602,7 +1602,7 @@ function buildsurveysession($surveyid,$preview=false)
<input type='hidden' name='loadpass' value='".htmlspecialchars($_GET['loadpass'])."' id='loadpass' />";
}

echo '<label for="token">'.$clang->gT("Token")."</label><input class='text' type='text' id='token' name='token'></li>";
echo '<label for="token">'.$clang->gT("Token")."</label><input class='text' type='password' id='token' name='token'></li>";
}
else
{
Expand Down

0 comments on commit 59d29fa

Please sign in to comment.