mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10538] Call htmlspecialchars_decode() on Jabber and SMTP passwords.
PHPBB3-10538
This commit is contained in:
parent
51f8f642de
commit
82fff947c6
1 changed files with 3 additions and 3 deletions
|
@ -568,7 +568,7 @@ class messenger
|
||||||
if (!$use_queue)
|
if (!$use_queue)
|
||||||
{
|
{
|
||||||
include_once($phpbb_root_path . 'includes/functions_jabber.' . $phpEx);
|
include_once($phpbb_root_path . 'includes/functions_jabber.' . $phpEx);
|
||||||
$this->jabber = new jabber($config['jab_host'], $config['jab_port'], $config['jab_username'], $config['jab_password'], $config['jab_use_ssl']);
|
$this->jabber = new jabber($config['jab_host'], $config['jab_port'], $config['jab_username'], htmlspecialchars_decode($config['jab_password']), $config['jab_use_ssl']);
|
||||||
|
|
||||||
if (!$this->jabber->connect())
|
if (!$this->jabber->connect())
|
||||||
{
|
{
|
||||||
|
@ -769,7 +769,7 @@ class queue
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once($phpbb_root_path . 'includes/functions_jabber.' . $phpEx);
|
include_once($phpbb_root_path . 'includes/functions_jabber.' . $phpEx);
|
||||||
$this->jabber = new jabber($config['jab_host'], $config['jab_port'], $config['jab_username'], $config['jab_password'], $config['jab_use_ssl']);
|
$this->jabber = new jabber($config['jab_host'], $config['jab_port'], $config['jab_username'], htmlspecialchars_decode($config['jab_password']), $config['jab_use_ssl']);
|
||||||
|
|
||||||
if (!$this->jabber->connect())
|
if (!$this->jabber->connect())
|
||||||
{
|
{
|
||||||
|
@ -1022,7 +1022,7 @@ function smtpmail($addresses, $subject, $message, &$err_msg, $headers = false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Let me in. This function handles the complete authentication process
|
// Let me in. This function handles the complete authentication process
|
||||||
if ($err_msg = $smtp->log_into_server($config['smtp_host'], $config['smtp_username'], $config['smtp_password'], $config['smtp_auth_method']))
|
if ($err_msg = $smtp->log_into_server($config['smtp_host'], $config['smtp_username'], htmlspecialchars_decode($config['smtp_password']), $config['smtp_auth_method']))
|
||||||
{
|
{
|
||||||
$smtp->close_session($err_msg);
|
$smtp->close_session($err_msg);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue