diff options
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions_messenger.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 2dc40bfdc3..d4052a8968 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -956,11 +956,9 @@ class smtp_class function smtp_class() { - if (defined('DEBUG')) - { - $this->backtrace = true; - $this->backtrace_log = array(); - } + // Always create a backtrace for admins to identify SMTP problems + $this->backtrace = true; + $this->backtrace_log = array(); } /** @@ -970,7 +968,7 @@ class smtp_class { if ($this->backtrace) { - $this->backtrace_log[] = htmlspecialchars($message, ENT_COMPAT, 'UTF-8'); + $this->backtrace_log[] = utf8_htmlspecialchars($message); } } |