MDL-20636 Merge branch 'master' into qe2_wip
[moodle.git] / question / type / shortanswer / question.php
index 8ea182d..ca36116 100644 (file)
@@ -43,7 +43,7 @@ class qtype_shortanswer_question extends question_graded_by_strategy
     }
 
     public function get_expected_data() {
-        return array('answer' => PARAM_TRIM);
+        return array('answer' => PARAM_RAW_TRIMMED);
     }
 
     public function summarise_response(array $response) {