diff --git a/application/helpers/frontend_helper.php b/application/helpers/frontend_helper.php index 47c09bd4a75..fe00708d6aa 100644 --- a/application/helpers/frontend_helper.php +++ b/application/helpers/frontend_helper.php @@ -72,7 +72,7 @@ function loadanswers() // If survey come from reload (GET or POST); some value need to be found on saved_control, not on survey if (Yii::app()->request->getParam('loadall') == "reload") { - $oSavedSurvey=SavedControl::model()->find("identifier=:identifier AND access_code=:access_code",array(":identifier"=>$sLoadName,":access_code"=>md5($sLoadPass))); + $oSavedSurvey=SavedControl::model()->find("identifier=:identifier AND (access_code=:access_code OR access_code=:sha256_code)",array(':identifier'=>$sLoadName,':access_code'=>md5($sLoadPass),':sha256_code'=>hash('sha256',$sLoadPass))); // We don't need to control if we have one, because we do the test before $_SESSION['survey_'.$surveyid]['scid'] = $oSavedSurvey->scid; App()->surveySessionManager->current->setStep(($oSavedSurvey->saved_thisstep>1)?$oSavedSurvey->saved_thisstep:1); diff --git a/application/views/admin/globalSettings_view.php b/application/views/admin/globalSettings_view.php index 443ea81582c..6637d1ac076 100644 --- a/application/views/admin/globalSettings_view.php +++ b/application/views/admin/globalSettings_view.php @@ -421,7 +421,7 @@ ), 'filterxsshtml'=>array( 'type'=>'select', - 'label'=>gt("Survey preview only for administration users").$sStringDemoMode, + 'label'=>gt("Filter HTML for XSS").$sStringDemoMode, 'labelOptions'=>array( 'class'=>$sClassDemoMode, ), diff --git a/application/views/admin/survey/Question/answerOptions_view.php b/application/views/admin/survey/Question/answerOptions_view.php index a8a25f674cd..e2e38f398de 100644 --- a/application/views/admin/survey/Question/answerOptions_view.php +++ b/application/views/admin/survey/Question/answerOptions_view.php @@ -200,7 +200,7 @@