summaryrefslogtreecommitdiff
path: root/lib/jabber.php
diff options
context:
space:
mode:
authorCiaranG <ciaran@ciarang.com>2008-08-22 15:17:51 -0400
committerCiaranG <ciaran@ciarang.com>2008-08-22 15:17:51 -0400
commit1e681833777fac7af5d5af5a612fa4169bf7c07e (patch)
treefd1ff8e0fa8c5839843e562ac30ad5fb89cad0f2 /lib/jabber.php
parent92645bbc578fafeb6816a44b8cf9cd594ffb5bd7 (diff)
Fixed attempt to read nonexistent match in JID regex
darcs-hash:20080822191751-f6e2c-578869b8524e3238c461872981a5dd8c285937e3.gz
Diffstat (limited to 'lib/jabber.php')
-rw-r--r--lib/jabber.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/jabber.php b/lib/jabber.php
index e9968b78f..586cdec7e 100644
--- a/lib/jabber.php
+++ b/lib/jabber.php
@@ -54,7 +54,6 @@ function jabber_normalize_jid($jid) {
if (preg_match("/(?:([^\@]+)\@)?([^\/]+)(?:\/(.*))?$/", $jid, $matches)) {
$node = $matches[1];
$server = $matches[2];
- $resource = $matches[3];
return strtolower($node.'@'.$server);
} else {
return NULL;