From 6f034c52153adc30737ff140105d92c41948e771 Mon Sep 17 00:00:00 2001 From: Christian Schnegelberger Date: Sun, 6 Nov 2022 18:33:12 +0100 Subject: [PATCH] [ticket/17058] Replace hardcoded PHP_EOL in phpbb_mail() with var PHPBB3-17058 --- phpBB/includes/functions_messenger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 894f2cf2e7..619907fe2b 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -629,7 +629,7 @@ class messenger } else { - $result = phpbb_mail($mail_to, $this->subject, $this->msg, $headers, PHP_EOL, $err_msg); + $result = phpbb_mail($mail_to, $this->subject, $this->msg, $headers, $encode_eol, $err_msg); } if (!$result) @@ -952,7 +952,7 @@ class queue } else { - $result = phpbb_mail($to, $subject, $msg, $headers, PHP_EOL, $err_msg); + $result = phpbb_mail($to, $subject, $msg, $headers, $encode_eol, $err_msg); } if (!$result)