Merge branch 'develop-ascraeus' into develop

* develop-ascraeus:
  [ticket/8558] Do string concatenation only once and do htmlspecialchars
  [ticket/8558] Add display name in emails from board
This commit is contained in:
Nils Adermann 2014-05-02 12:43:20 +02:00
commit 367abd2297

View file

@ -484,14 +484,16 @@ class messenger
$use_queue = true; $use_queue = true;
} }
$board_contact = '"' . mail_encode(htmlspecialchars($config['sitename'])) . '" <' . $config['board_contact'] . '>';
if (empty($this->replyto)) if (empty($this->replyto))
{ {
$this->replyto = '<' . $config['board_contact'] . '>'; $this->replyto = $board_contact;
} }
if (empty($this->from)) if (empty($this->from))
{ {
$this->from = '<' . $config['board_contact'] . '>'; $this->from = $board_contact;
} }
$encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol; $encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol;