mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Prevent email header injection
SVN:trunk[1573]
This commit is contained in:
@@ -86,8 +86,8 @@ class EMail
|
||||
set_error_handler(array($this, 'mail_error_handler'));
|
||||
$bRes = mail
|
||||
(
|
||||
$this->m_sTo,
|
||||
$this->m_sSubject,
|
||||
str_replace(array("\n", "\r"), ' ', $this->m_sTo), // Prevent header injection
|
||||
str_replace(array("\n", "\r"), ' ', $this->m_sSubject), // Prevent header injection
|
||||
$this->m_sBody,
|
||||
$sHeaders
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user