Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit 66c28f1

Browse files
Fred Neumanncorro
authored andcommitted
fix FreeInput
1 parent 81b3573 commit 66c28f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

classes/QuestionTypes/FreeInput/class.xlvoFreeInputGUI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function submit() {
5858
if ($this->manager->getVoting()->isMultiFreeInput()) {
5959
$array = array();
6060
foreach (filter_input(INPUT_POST, self::F_VOTE_MULTI_LINE_INPUT, FILTER_DEFAULT, FILTER_FORCE_ARRAY) as $item) {
61-
$input = $item[self::F_FREE_INPUT];
61+
$input = ilUtil::secureString($item[self::F_FREE_INPUT]);
6262
if (!empty($input) && strlen($input) <= $input_gui->getMaxLength()) {
6363
$array[] = array(
6464
"input" => $input,
@@ -68,7 +68,7 @@ protected function submit() {
6868
}
6969
$this->manager->inputAll($array);
7070
} else {
71-
$input = filter_input(INPUT_POST, self::F_FREE_INPUT);
71+
$input = ilUtil::secureString(filter_input(INPUT_POST, self::F_FREE_INPUT));
7272
if (!empty($input) && strlen($input) <= $input_gui->getMaxLength()) {
7373
$this->manager->inputOne(array(
7474
"input" => $input,

0 commit comments

Comments
 (0)