mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36: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,7 +101,7 @@ class quiz_essay_qtype extends quiz_default_questiontype {
|
||||||
// this prints out the student response box
|
// this prints out the student response box
|
||||||
if (isset($state->responses[''])) {
|
if (isset($state->responses[''])) {
|
||||||
// security problem. responses[''] is never cleaned before it is sent to the db (I think)
|
// 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 {
|
} else {
|
||||||
$value = "";
|
$value = "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue