Bug #49396
closedt3lib_utility_Mail::breakLinesForEmail cuts text wrong and discard rest of line
100%
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
Updated by Jigal van Hemert over 11 years ago
- Priority changed from Must have to Should have
- Complexity set to easy
Updated by Gerrit Code Review over 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21978
Updated by Tim Lochmüller over 11 years ago
Note: t3lib_utility_Mail is a deprecated class name. I fixed the MailUtility!
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21978
Updated by Gerrit Code Review over 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21978
Updated by Gerrit Code Review over 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21978
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/22677
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/22678
Updated by Tim Lochmüller over 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d93d7d7ce0788594bb29ade9c984f9a957a5eed1.