Skip to content

Commit 66571b8

Browse files
committed
fix(textarea): rn chars added between lines
1 parent ba78e93 commit 66571b8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

inc/field/textfield.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ public function parseAnswerValues($input, $nonDestructive = false): bool {
201201
return false;
202202
}
203203

204-
$this->value = Sanitizer::sanitize($input[$key]);
205204
$this->value = Sanitizer::unsanitize($input[$key]);
206205
return true;
207206
}

inc/formanswer.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ protected function validateFormAnswer($input, $checkValidator = true) {
12911291

12921292
if (!$this->isAnswersValid) {
12931293
// Save answers in session to display it again with the same values
1294-
$_SESSION['formcreator']['data'] = Toolbox::stripslashes_deep($input);
1294+
$_SESSION['formcreator']['data'] = Sanitizer::unsanitize($input);
12951295
return false;
12961296
}
12971297

0 commit comments

Comments
 (0)