Project

General

Profile

Actions

Bug #32515

closed

Form values with newlines are displayed with <br/>'s in email

Added by Alexander Dick almost 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2011-12-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

When entering a text with newlines in a textarea, the newlines are displayed as <br/>'s in the resulting email.

File: typo3/sysext/form/Classes/View/Mail/Html/Element/Abstract.php
Function: getInputValue()

The input value is first parsed through nl2br() and then through htmlspecialchars(), which results in escaped <br/> tags instead of real <br/> Tags (for the html mail).

Actions

Also available in: Atom PDF