Fixed attempt to read nonexistent match in JID regex

darcs-hash:20080822191751-f6e2c-578869b8524e3238c461872981a5dd8c285937e3.gz
This commit is contained in:
CiaranG 2008-08-22 15:17:51 -04:00
parent 92645bbc57
commit 1e68183377

View 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;