Actions
Bug #49396
closedt3lib_utility_Mail::breakLinesForEmail cuts text wrong and discard rest of line
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-06-25
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Description
This Line of a text mail for directmail
Mein Link auf eine News (Link: http://zzzzzzzzzzzzz.xxxxxxxxx.de/index.php?id=10&tx_ttnews%5Btt_news%5D=1&cHash=66f5af320da29b7ae1cda49047ca7358)
is cutted to
Mein Link auf eine News (Link:
The bug ist in method breakLinesForEmail(). The counter $substrStart isn't incremented correctly.
You have to add this line
$substrStart++;
in this block
if ($spacePos !== FALSE) { // take everything up to last space-char $theLine = substr($substr, 0, $spacePos); $substrStart++; } else {...}
See here in line 14: http://pastebin.com/3ejHhbfX
Actions