Hi Petr,
I added you as a watcher because I need some advise on this bug.
If one adds a Short Answer Question in the Lesson module and one of the answers is "i < total", then when the user answers the question, his/her answer gets cleaned to "i <total>".
The line of code that changes this is the following (line 91 in mod/lesson/action/continue.php):
$useranswer = stripslashes(clean_param($useranswer, PARAM_CLEAN));
I cannot find a different way to clean the users answer that does not change i < total to i <total>
I tried to find how this is accomplished with quiz and it appears that no cleaning is used (from what I can tell). Please advise on how this should be handled.
Much thanks!
From Antti Boman (antti.boman at avence.fi) Tuesday, 28 September 2004, 03:44 PM:
This is not a duplicate of
MDL-1625, but I wrote a small explanation of the problem there. This may be everywhere.MDL-1625, but I wrote a small explanation of the problem there. This may be everywhere.