]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed attempt to read nonexistent match in JID regex
authorCiaranG <ciaran@ciarang.com>
Fri, 22 Aug 2008 19:17:51 +0000 (15:17 -0400)
committerCiaranG <ciaran@ciarang.com>
Fri, 22 Aug 2008 19:17:51 +0000 (15:17 -0400)
darcs-hash:20080822191751-f6e2c-578869b8524e3238c461872981a5dd8c285937e3.gz

lib/jabber.php

index e9968b78f8155328db43f91e1daf96843e7cae66..586cdec7ea0ac080e175b53b5872cfab2e24636d 100644 (file)
@@ -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;