Permalink
Browse files

MDL-12860 - do input sanitization early, so as to not mess up display…

… later
  • Loading branch information...
scyrma
scyrma committed Apr 17, 2008
1 parent 2004936 commit f0a63261814a6da09d2a56d24e95ecc3895ad985
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lesson/action/continue.php
@@ -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")) {
error("Continue: No answers found");

0 comments on commit f0a6326

Please sign in to comment.