Skip to content

Commit

Permalink
Fixed issue #8380: Minor XSS vulnerability in adminstration QA view a…
Browse files Browse the repository at this point in the history
…nd survey overview
  • Loading branch information
c-schmitz committed Dec 5, 2013
1 parent b7796d8 commit b0955ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions application/core/Survey_Common_Action.php
Expand Up @@ -729,11 +729,11 @@ function _surveysummary($iSurveyID, $action=null, $gid=null)
}
if ($surveyinfo['emailnotificationto'] != '')
{
$surveysummary2 .= $clang->gT("Basic email notification is sent to:") . " {$surveyinfo['emailnotificationto']}<br />\n";
$surveysummary2 .= $clang->gT("Basic email notification is sent to:") .' '. htmlspecialchars($surveyinfo['emailnotificationto'])."<br />\n";
}
if ($surveyinfo['emailresponseto'] != '')
{
$surveysummary2 .= $clang->gT("Detailed email notification with response data is sent to:") . " {$surveyinfo['emailresponseto']}<br />\n";
$surveysummary2 .= $clang->gT("Detailed email notification with response data is sent to:") .' '. htmlspecialchars($surveyinfo['emailresponseto'])."<br />\n";
}

$dateformatdetails = getDateFormatData(Yii::app()->session['dateformat']);
Expand Down
4 changes: 2 additions & 2 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -8129,7 +8129,7 @@ static public function ShowSurveyLogicFile($sid, $gid=NULL, $qid=NULL,$LEMdebugL
}
}

$out .= "<tr><th>#</th><th>".$LEM->gT('Name [ID]')."</th><th>".$LEM->gT('Relevance [Validation] (Default)')."</th><th>".$LEM->gT('Text [Help] (Tip)')."</th></tr>\n";
$out .= "<tr><th>#</th><th>".$LEM->gT('Name [ID]')."</th><th>".$LEM->gT('Relevance [Validation] (Default value)')."</th><th>".$LEM->gT('Text [Help] (Tip)')."</th></tr>\n";

$_gseq=-1;
foreach ($LEM->currentQset as $q) {
Expand Down Expand Up @@ -8181,7 +8181,7 @@ static public function ShowSurveyLogicFile($sid, $gid=NULL, $qid=NULL,$LEMdebugL
if ($LEM->em->HasErrors()) {
++$errorCount;
}
$default = '<br />(' . $LEM->gT('Default:') . ' ' . $_default . ')';
$default = '<br />(' . $LEM->gT('Default:') . ' ' . htmlspecialchars($_default) . ')';
}
else
{
Expand Down

0 comments on commit b0955ce

Please sign in to comment.