aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-08-31 00:38:44 +0100
committerMatthew Wild <mwild1@gmail.com>2010-08-31 00:38:44 +0100
commitc14f4168f2ae10f931f46ec9d43029bce889369f (patch)
tree59c96b32248c317701492d48fd1a3ab690dfde07 /util
parent0c0140fa2d272dd51efb80753ba7c226318a457c (diff)
downloadprosody-c14f4168f2ae10f931f46ec9d43029bce889369f.tar.gz
prosody-c14f4168f2ae10f931f46ec9d43029bce889369f.zip
util.jid: Fix parsing of JIDs with no nodepart and an @ in the resourcepart (thanks seth)
Diffstat (limited to 'util')
-rw-r--r--util/jid.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/jid.lua b/util/jid.lua
index 9128ce4e..069817c6 100644
--- a/util/jid.lua
+++ b/util/jid.lua
@@ -17,7 +17,7 @@ module "jid"
local function _split(jid)
if not jid then return; end
- local node, nodepos = match(jid, "^([^@]+)@()");
+ local node, nodepos = match(jid, "^([^@/]+)@()");
local host, hostpos = match(jid, "^([^@/]+)()", nodepos)
if node and not host then return nil, nil, nil; end
local resource = match(jid, "^/(.+)$", hostpos);