mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-12860 - do input sanitization early, so as to not mess up display later (merge from 1.9)
This commit is contained in:
parent
b32cec0757
commit
73b36bca84
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user