[ticket/17058] Add if-sentence for $encode_eol for email headers

PHPBB3-17058
This commit is contained in:
Christian Schnegelberger 2022-11-06 17:27:08 +01:00 committed by Marc Alexander
parent cd36a68645
commit 0802772f09
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -597,7 +597,7 @@ class messenger
$this->from = $board_contact;
}
$encode_eol = ($config['smtp_delivery']) ? "\r\n" : PHP_EOL;
$encode_eol = $config['smtp_delivery'] || PHP_VERSION_ID >= 80000 ? "\r\n" : PHP_EOL;
// Build to, cc and bcc strings
$to = $cc = $bcc = '';