Skip to content

Commit

Permalink
Fixed issue #9042: CSS vulnerability in 'Resume later' save screen
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed May 20, 2014
1 parent 511c1fe commit deacd66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/libraries/Save.php
Expand Up @@ -83,7 +83,7 @@ function showsaveform()
//END
echo "<input type='hidden' name='sid' value='$surveyid' />\n";
echo "<input type='hidden' name='thisstep' value='$thisstep' />\n";
echo "<input type='hidden' name='token' value='$clienttoken' />\n";
echo CHtml::hiddenField('token',$clienttoken)."\n";
echo "<input type='hidden' name='saveprompt' value='Y' />\n";
echo "</form>";

Expand Down Expand Up @@ -201,7 +201,7 @@ function savedcontrol()
$message .= $clang->gT("Password").": ".$_POST['savepass']."\n\n";
$message .= $clang->gT("Reload your survey by clicking on the following link (or pasting it into your browser):")."\n";
$message .= Yii::app()->getController()->createAbsoluteUrl("/survey/index/sid/{$surveyid}/loadall/reload/scid/{$scid}/loadname/".rawurlencode ($_POST['savename'])."/loadpass/".rawurlencode ($_POST['savepass'])."/lang/".rawurlencode ($clang->langcode));
if ($clienttoken) $message .= "/token/{$clienttoken}";
if ($clienttoken) $message .= "/token/".rawurlencode($clienttoken);

$from="{$thissurvey['adminname']} <{$thissurvey['adminemail']}>";
if (SendEmailMessage($message, $subject, $_POST['saveemail'], $from, $sitename, false, getBounceEmail($surveyid)))
Expand Down

0 comments on commit deacd66

Please sign in to comment.