MDL-12860 - do input sanitization early, so as to not mess up display later (merge from 1.9)

This commit is contained in:
scyrma 2008-04-17 08:04:37 +00:00
parent b32cec0757
commit 73b36bca84

View File

@ -91,7 +91,7 @@
$noanswer = true;
break;
}
$useranswer = stripslashes(clean_param($useranswer, PARAM_RAW));
$useranswer = s(stripslashes(clean_param($useranswer, PARAM_RAW)));
$userresponse = addslashes($useranswer);
if (!$answers = get_records("lesson_answers", "pageid", $pageid, "id")) {
print_error("Continue: No answers found");