Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
92ba654f
Commit
92ba654f
authored
Jun 29, 2021
by
Carsten Rose
Browse files
Replaces '<br>' by '<br>\r\n' - this is just a try.
parent
12452a4a
Pipeline
#5368
passed with stages
in 3 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/Report/SendMail.php
View file @
92ba654f
...
...
@@ -3,13 +3,12 @@
namespace
IMATHUZH\Qfq\Core\Report
;
use
IMATHUZH\Qfq\Core\Database\Database
;
use
IMATHUZH\Qfq\Core\Helper\HelperFile
;
use
IMATHUZH\Qfq\Core\Helper\OnArray
;
use
IMATHUZH\Qfq\Core\Helper\Path
;
use
IMATHUZH\Qfq\Core\Store\Store
;
use
IMATHUZH\Qfq\Core\Helper\Sanitize
;
use
IMATHUZH\Qfq\Core\Helper\HelperFile
;
use
IMATHUZH\Qfq\Core\Helper\Support
;
use
IMATHUZH\Qfq\Core\Store\Store
;
const
SENDMAIL_HTML_TOKEN
=
'<html>'
;
...
...
@@ -156,6 +155,7 @@ class SendMail {
if
(
isset
(
$mailConfig
[
SENDMAIL_TOKEN_BODY_MODE
])
&&
$mailConfig
[
SENDMAIL_TOKEN_BODY_MODE
]
===
SENDMAIL_TOKEN_BODY_MODE_HTML
)
{
$mailConfig
[
SENDMAIL_TOKEN_BODY
]
=
Support
::
wrapTag
(
SENDMAIL_HTML_TOKEN
,
$mailConfig
[
SENDMAIL_TOKEN_BODY
]);
$mailConfig
[
SENDMAIL_TOKEN_BODY
]
=
str_ireplace
(
"<br>"
,
"<br>
\r\n
"
,
$mailConfig
[
SENDMAIL_TOKEN_BODY
]);
}
foreach
(
$mailConfig
as
$key
=>
$value
)
{
...
...
@@ -462,7 +462,7 @@ class SendMail {
$param
=
explode
(
PARAM_DELIMITER
,
$data
);
// Iterate over all parameter: use token as key. Collect corresponding attachments arguments in separate array elements.
foreach
(
$param
AS
$line
)
{
foreach
(
$param
as
$line
)
{
if
(
empty
(
$line
))
{
continue
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment