projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd24402
)
util.jid: Fix parsing of JIDs with no nodepart and an @ in the resourcepart (thanks...
author
Matthew Wild
<mwild1@gmail.com>
Mon, 30 Aug 2010 23:38:44 +0000
(
00:38
+0100)
committer
Matthew Wild
<mwild1@gmail.com>
Mon, 30 Aug 2010 23:38:44 +0000
(
00:38
+0100)
util/jid.lua
patch
|
blob
|
history
diff --git
a/util/jid.lua
b/util/jid.lua
index 9128ce4e0a73c8f219331da5114d34539b12f5fd..069817c6167c46d0fffbe2a4e98bb71f604474b2 100644
(file)
--- 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);