From 09f6cf11dd16893eea6836175773454a382f04df Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 14 Sep 2007 14:06:23 +0000 Subject: - correct jabber token handling - undisclosed-recipients:; instead of undisclosed-recipient:; - PM details button should not be there git-svn-id: file:///svn/phpbb/trunk@8090 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_jabber.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'phpBB/includes/functions_jabber.php') diff --git a/phpBB/includes/functions_jabber.php b/phpBB/includes/functions_jabber.php index 6297dac4bf..e15033b7e0 100644 --- a/phpBB/includes/functions_jabber.php +++ b/phpBB/includes/functions_jabber.php @@ -499,6 +499,13 @@ class jabber } else { + // Make sure we only use 'auth' for qop (relevant for $this->encrypt_password()) + // If the is choking up on the changed parameter we may need to adjust encrypt_password() directly + if (isset($decoded['qop']) && $decoded['qop'] != 'auth' && strpos($decoded['qop'], 'auth') !== false) + { + $decoded['qop'] = 'auth'; + } + $response = array( 'username' => $this->username, 'response' => $this->encrypt_password(array_merge($decoded, array('nc' => '00000001'))), -- cgit v1.2.1