Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2018-12-05 12:24:52 +0300
committersualko <klaus@jsxc.org>2018-12-05 12:35:54 +0300
commitf54bdcec78841770ec391e3b33f33e762169ad94 (patch)
treed32bf1630bbf3e58b5ba9ab1c0184a4e14601054 /build/lib/stanzahandlers/message.php
parentd71398a68326b27eeebc96b004fb227440be826c (diff)
build v3.4.3v3.4.3
Diffstat (limited to 'build/lib/stanzahandlers/message.php')
-rw-r--r--build/lib/stanzahandlers/message.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/build/lib/stanzahandlers/message.php b/build/lib/stanzahandlers/message.php
index dac030f..42d41c9 100644
--- a/build/lib/stanzahandlers/message.php
+++ b/build/lib/stanzahandlers/message.php
@@ -67,11 +67,10 @@ class Message extends StanzaHandler
*/
public function handle(array $stanza)
{
+ // Parse the username from the XML stanza to a NC userid
$to = $this->getAttribute($stanza, 'to');
$pos = strrpos($to, '@');
-
$this->to = substr($to, 0, $pos);
-
$this->to = Application::convertToRealUID(Application::deSanitize($this->to));
if (!$this->userProvider->hasUserByUID($this->to)) {