From 664a6b9601ea68a7160f3b2bebbaaa70b8f33b6f Mon Sep 17 00:00:00 2001 From: Carlos Vargas Date: Tue, 19 May 2009 18:31:28 +0200 Subject: [PATCH] [svn r20841] fixed bug introduced by SVN#20776 removing important lines see FS#4050 --- main/exercice/admin.php | 44 ++++++++++++++++++++++++----- main/exercice/hotspot_admin.inc.php | 2 +- 2 files changed, 38 insertions(+), 8 deletions(-) diff --git a/main/exercice/admin.php b/main/exercice/admin.php index 3225718221..83c8a68a3d 100644 --- a/main/exercice/admin.php +++ b/main/exercice/admin.php @@ -1,4 +1,4 @@ -$val) + { + if(is_string($val)) + { + $_POST[$key]=stripslashes($val); + } + elseif(is_array($val)) + { + foreach($val as $key2=>$val2) + { + $_POST[$key][$key2]=stripslashes($val2); + } + } + + $GLOBALS[$key]=$_POST[$key]; + } +} // get vars from GET if ( empty ( $exerciseId ) ) @@ -431,8 +456,12 @@ echo Display::return_icon('edit.gif', get_lang('ModifyExercise')).''.$objExercise->selectTitle().''; if(!empty($description)) { - echo '
'.$description.'
'; + echo '
'.stripslashes($description).'
'; } */ @@ -469,7 +498,8 @@ if(!$newQuestion && !$modifyQuestion && !$editQuestion && !isset($_GET['hotspota if($form -> getSubmitValue('edit') == 'true') Display::display_confirmation_message(get_lang('ExerciseEdited')); } - $form -> display (); + $form -> display (); + echo '
'; // question list management include('question_list_admin.inc.php'); } diff --git a/main/exercice/hotspot_admin.inc.php b/main/exercice/hotspot_admin.inc.php index 2b72196418..25eb8ede4a 100644 --- a/main/exercice/hotspot_admin.inc.php +++ b/main/exercice/hotspot_admin.inc.php @@ -277,7 +277,7 @@ if($modifyAnswers) } else { ?> - +