mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Don't strip slashes from data send to htmlarea, after all it is not being stripped from data going to the normal textarea either.
This commit is contained in:
parent
1ca20e0272
commit
6a8b20b790
1 changed files with 1 additions and 1 deletions
|
@ -3593,7 +3593,7 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v
|
||||||
}
|
}
|
||||||
$str .= '<textarea class="form=textarea" id="edit-'. $name .'" name="'. $name .'" rows="'. $rows .'" cols="'. $cols .'">';
|
$str .= '<textarea class="form=textarea" id="edit-'. $name .'" name="'. $name .'" rows="'. $rows .'" cols="'. $cols .'">';
|
||||||
if ($usehtmleditor) {
|
if ($usehtmleditor) {
|
||||||
$str .= htmlspecialchars(stripslashes_safe($value)); // needed for editing of cleaned text!
|
$str .= htmlspecialchars($value); // needed for editing of cleaned text!
|
||||||
} else {
|
} else {
|
||||||
$str .= s($value);
|
$str .= s($value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue