Skip to content

Commit

Permalink
Fixed issue #11580: Error 403 at captcha query
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Aug 25, 2016
1 parent 58b5d1e commit 7069e46
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions application/views/survey/frontpage/enterCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
</div>
<?php if (isset($errorMessage)): ?>
<div class="alert alert-danger" role="alert">
<?php echo $errorMessage; ?>
<?php echo $errorMessage; ?>
</div>
<?php endif; ?>
<div class="container">
<?php echo CHtml::beginForm(array("/survey/index/sid/.$iSurveyId."), 'post', array(
<?php echo CHtml::beginForm(array("/survey/index/sid/{$iSurveyId}"), 'post', array(
'id' => 'tokenform',
'class' => 'form-horizontal col-sm-12 col-md-10 col-md-offset-1'
)); ?>
<div class="form-group col-sm-12">

<div class="form-group col-sm-12">
<label class="col-md-4 col-sm-12 control-label">
<p class='col-sm-6 col-md-12 remove-padding'><?php eT("Please enter the letters you see below:"); ?></p>
<span class="col-md-12 col-sm-6">
<span class="col-md-12 col-sm-6">
<?php $this->widget('CCaptcha',array(
'buttonOptions'=>array('class'=> 'btn btn-xs btn-info'),
'buttonType' => 'button',
Expand All @@ -39,9 +39,9 @@
'class' => 'text input-sm form-control '.$sKpClass,
'required' => 'required'
)) ?>
</div>
</div>
</div>

<!-- Submit area -->
<div class="row form-group">
<span class='col-sm-12 col-md-3 col-md-offset-9'>
Expand Down
8 changes: 4 additions & 4 deletions application/views/survey/frontpage/enterToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

<?php if (isset($errorMessage)): ?>
<div class="alert alert-danger" role="alert">
<?php echo $errorMessage; ?>
<?php echo $errorMessage; ?>
</div>
<?php endif; ?>

<div class="container">
<?php echo CHtml::beginForm(array("/survey/index/sid/.$iSurveyId."), 'post', array(
<?php echo CHtml::beginForm(array("/survey/index/sid/{$iSurveyId}"), 'post', array(
'id' => 'tokenform',
'class' => 'form-horizontal col-sm-12 col-md-10 col-md-offset-1'
)); ?>
Expand Down Expand Up @@ -74,7 +74,7 @@


<?php if (isset($bCaptchaEnabled)): ?>
<div class="col-sm-12 form-group">
<div class="col-sm-12 form-group">
<label class="col-md-4 col-sm-12 control-label">
<p class='col-sm-6 col-md-12 remove-padding'><?php eT("Please enter the letters you see below:"); ?></p>
<span class="col-sm-6 col-md-12">
Expand All @@ -92,7 +92,7 @@
'class' => 'text input-sm form-control '.$sKpClass,
'required' => 'required'
)) ?>
</div>
</div>
</div>
<?php endif; ?>
<!-- Submit area -->
Expand Down

0 comments on commit 7069e46

Please sign in to comment.