diff --git a/main/survey/survey.lib.php b/main/survey/survey.lib.php index 6c0b108364..4e21045867 100644 --- a/main/survey/survey.lib.php +++ b/main/survey/survey.lib.php @@ -917,7 +917,7 @@ class question function create_form($form_content) { global $fck_attribute; - $this->html = '
'; + $this->html = ''; $this->html .= ' '; $this->html .= ' '; $this->html .= ' '; @@ -932,7 +932,7 @@ class question $fck_attribute['Height'] = '100'; $fck_attribute['ToolbarSet'] = 'Survey'; //$this->html .= ' '; - $this->html .= ' '.api_return_html_area('question', $form_content['question']).''; + $this->html .= ' '.api_return_html_area('question', stripslashes($form_content['question'])).''; $this->html .= ' '; /* $this->html .= ' '; @@ -1329,7 +1329,7 @@ class multipleresponse extends question $this->html .= ' '; $this->html .= ' '; //$this->html .= ' '; - $this->html .= ' '.api_return_html_area('answers['.$key.']', $form_content['answers'][$key]).''; + $this->html .= ' '.api_return_html_area('answers['.$key.']', stripslashes($form_content['answers'][$key])).''; $this->html .= ' '; if ($key<$total_number_of_answers-1) { diff --git a/main/survey/survey_list.php b/main/survey/survey_list.php index 989a3b5a71..2cc83b2102 100644 --- a/main/survey/survey_list.php +++ b/main/survey/survey_list.php @@ -21,7 +21,7 @@ * @package dokeos.survey * @author unknown, the initial survey that did not make it in 1.8 because of bad code * @author Patrick Cool , Ghent University: cleanup, refactoring and rewriting large parts of the code -* @version $Id: survey_list.php 11685 2007-03-25 21:14:55Z pcool $ +* @version $Id: survey_list.php 11799 2007-03-30 09:31:17Z elixir_julian $ * * @todo The invite column is not done * @todo try to understand the white, blue, ... template stuff. @@ -124,7 +124,7 @@ if ($_POST['action']) // Action links echo ''.get_lang('CreateNewSurvey').' | '; //echo ''.get_lang('CreateExistingSurvey').' | '; -echo ''.get_lang('Search').''; +echo ''.get_lang('Search').''; // Main content display_survey_list(); @@ -190,7 +190,7 @@ function display_survey_list() if ($_GET['do_search']) { $message = get_lang('DisplaySearchResults').'
'; - $message .= ''.get_lang('DisplayAll').''; + $message .= ''.get_lang('DisplayAll').''; Display::display_normal_message($message, false); }