projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e76b2ee
)
mod_xmlrpc: Remove file and line number from XML-RPC errors
author
Waqas Hussain
<waqas20@gmail.com>
Sat, 25 Jul 2009 14:58:24 +0000
(19:58 +0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Sat, 25 Jul 2009 14:58:24 +0000
(19:58 +0500)
plugins/mod_xmlrpc.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_xmlrpc.lua
b/plugins/mod_xmlrpc.lua
index ff2c5f7f2a0b9834ffca2d29ebd39fd378002357..05c0b8b04b4760e0bfff31c6f4f936b9bc361649 100644
(file)
--- a/
plugins/mod_xmlrpc.lua
+++ b/
plugins/mod_xmlrpc.lua
@@
-83,7
+83,7
@@
local function handle_xmlrpc_request(jid, method, args)
end
return create_error_response(500, "Error in creating response: "..result);
end
- return create_error_response(0,
result
or "nil");
+ return create_error_response(0,
(result and result:gmatch("[^:]*:[^:]*: (.*)")())
or "nil");
end
local function handle_xmpp_request(origin, stanza)