mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
[BugFix] Bug #4828 - \ stripping problem
This commit is contained in:
parent
ee27cca526
commit
0ac9372517
1 changed files with 2 additions and 2 deletions
|
@ -101,11 +101,11 @@ class quiz_essay_qtype extends quiz_default_questiontype {
|
|||
// this prints out the student response box
|
||||
if (isset($state->responses[''])) {
|
||||
// security problem. responses[''] is never cleaned before it is sent to the db (I think)
|
||||
$value = clean_param($state->responses[''], PARAM_CLEANHTML);
|
||||
$value = clean_param(addslashes($state->responses['']), PARAM_CLEANHTML);
|
||||
} else {
|
||||
$value = "";
|
||||
}
|
||||
|
||||
|
||||
$inputname = $nameprefix;
|
||||
|
||||
echo "<p>$stranswer: ".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue