mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
Merge remote-tracking branch 'github-elsensee/ticket/stenudd/8558' into develop-ascraeus
* github-elsensee/ticket/stenudd/8558: [ticket/8558] Do string concatenation only once and do htmlspecialchars [ticket/8558] Add display name in emails from board
This commit is contained in:
@@ -484,14 +484,16 @@ class messenger
|
||||
$use_queue = true;
|
||||
}
|
||||
|
||||
$board_contact = '"' . mail_encode(htmlspecialchars($config['sitename'])) . '" <' . $config['board_contact'] . '>';
|
||||
|
||||
if (empty($this->replyto))
|
||||
{
|
||||
$this->replyto = '<' . $config['board_contact'] . '>';
|
||||
$this->replyto = $board_contact;
|
||||
}
|
||||
|
||||
if (empty($this->from))
|
||||
{
|
||||
$this->from = '<' . $config['board_contact'] . '>';
|
||||
$this->from = $board_contact;
|
||||
}
|
||||
|
||||
$encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol;
|
||||
|
Reference in New Issue
Block a user