Project

General

Profile

Actions

Bug #16777

closed

t3lib_htmlmail truncates last character in html mails

Added by Alban Cousinie almost 18 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2006-12-11
Due date:
% Done:

0%

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

Description

This bug may only occur on windows, I haven't tested it on Linux.
I use mySQL 5 and php 5.1.6

The issue occurs on every HTML email generated using class.t3lib_htmlmail, from any plugin or even using the basic form edit of typo3 :
When an HTML part is specified for the email, the last character is being eaten. Thus when the data is presented into a table, the last character of the tag </table> that is located at then end of the mail disapears and the email received displays : "</table" at the end of the email.

Under windows, create a form object in any page, add one or 2 fields and enable the HTML mode.

Fill the form in frontend and check out your email client for the received form : "</table" should appear at the end of the email you have received.

This bug is easy to fix. The function setHTML at line 781 of the class should be modified so a .chr(10) is appended at the end of the HTML, preventing the last character to be eaten.

Here is the code of the function fixed :

function setHtml ($content) {
// Sets the HTML-part. No processing done.
$this->theParts["html"]["content"] = $content.chr(10);
}
(issue imported from #M4634)

Actions

Also available in: Atom PDF