From: CiaranG Date: Fri, 22 Aug 2008 19:17:51 +0000 (-0400) Subject: Fixed attempt to read nonexistent match in JID regex X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1e681833777fac7af5d5af5a612fa4169bf7c07e;p=quix0rs-gnu-social.git Fixed attempt to read nonexistent match in JID regex darcs-hash:20080822191751-f6e2c-578869b8524e3238c461872981a5dd8c285937e3.gz --- diff --git a/lib/jabber.php b/lib/jabber.php index e9968b78f8..586cdec7ea 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;