From 6834946f90dd76dce275261b44d4018d64622857 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Mon, 18 Apr 2016 19:19:23 +0200 Subject: [PATCH] correctly handle line breaks in textarea #1312 Textareas use CRLF, but internally we use LF. --- inc/Form/TextareaElement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Form/TextareaElement.php b/inc/Form/TextareaElement.php index 9d461fdf5..92741eecb 100644 --- a/inc/Form/TextareaElement.php +++ b/inc/Form/TextareaElement.php @@ -31,7 +31,7 @@ class TextareaElement extends InputElement { */ public function val($value = null) { if($value !== null) { - $this->text = $value; + $this->text = cleanText($value); return $this; } return $this->text; -- GitLab