mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/8558] Do string concatenation only once and do htmlspecialchars
PHPBB3-8558
This commit is contained in:
parent
7e7647c159
commit
e0151abdb5
1 changed files with 4 additions and 2 deletions
|
@ -486,14 +486,16 @@ class messenger
|
|||
$use_queue = true;
|
||||
}
|
||||
|
||||
$board_contact = '"' . mail_encode(htmlspecialchars($config['sitename'])) . '" <' . $config['board_contact'] . '>';
|
||||
|
||||
if (empty($this->replyto))
|
||||
{
|
||||
$this->replyto = '"' . $config['sitename'] . '" <' . $config['board_contact'] . '>';
|
||||
$this->replyto = $board_contact;
|
||||
}
|
||||
|
||||
if (empty($this->from))
|
||||
{
|
||||
$this->from = '"' . $config['sitename'] . '" <' . $config['board_contact'] . '>';
|
||||
$this->from = $board_contact;
|
||||
}
|
||||
|
||||
$encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol;
|
||||
|
|
Loading…
Add table
Reference in a new issue