From 5605450820edf76d97676d34bee52c080baa27f1 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Thu, 12 Oct 2017 10:51:17 +0200 Subject: [PATCH] Fixed issue #12739: File upload question format: Title and comment may be garbled when going back and forth --- application/helpers/qanda_helper.php | 7 +++---- application/views/survey/questions/file_upload/answer.php | 6 ++++-- scripts/modaldialog.js | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/application/helpers/qanda_helper.php b/application/helpers/qanda_helper.php index 5bf8df05567..cb86632be27 100644 --- a/application/helpers/qanda_helper.php +++ b/application/helpers/qanda_helper.php @@ -2511,13 +2511,12 @@ function upload_$ia[1]() { $filecountvalue = $tempval; } } - $value = htmlspecialchars($_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]],ENT_QUOTES,'utf-8'); - $fileuploadDatas = array( + $fileuploadData = array( 'fileid' => $ia[1], - 'value' => $value, + 'value' => $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]], 'filecountvalue'=>$filecountvalue, ); - $answer .= doRender('/survey/questions/file_upload/answer', $fileuploadDatas, true); + $answer .= doRender('/survey/questions/file_upload/answer', $fileuploadData, true); $answer .= '