# HG changeset patch # User Matthew Wild # Date 1249498807 -3600 # Node ID 726ac98306d840141bc7b65f1e26839a2691457e # Parent 0914d128c55e50eabd8f31759b3141efd11a1dbe mod_xmlrpc: Correct stripping of filename/line number prefix in RPC method error results diff -r 0914d128c55e -r 726ac98306d8 plugins/mod_xmlrpc.lua --- a/plugins/mod_xmlrpc.lua Wed Aug 05 16:37:28 2009 +0100 +++ b/plugins/mod_xmlrpc.lua Wed Aug 05 20:00:07 2009 +0100 @@ -83,7 +83,7 @@ end return create_error_response(500, "Error in creating response: "..result); end - return create_error_response(0, (result and result:gmatch("[^:]*:[^:]*: (.*)")()) or "nil"); + return create_error_response(0, tostring(result):gsub("^[^:]+:%d+: ", "")); end local function handle_xmpp_request(origin, stanza)