diff options
Diffstat (limited to 'sca-cpp/trunk')
-rw-r--r-- | sca-cpp/trunk/modules/json/json.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-cpp/trunk/modules/json/json.hpp b/sca-cpp/trunk/modules/json/json.hpp index fdf752a362..94d37866a3 100644 --- a/sca-cpp/trunk/modules/json/json.hpp +++ b/sca-cpp/trunk/modules/json/json.hpp @@ -400,9 +400,11 @@ const list<value> jsonValues(const list<value>& e) { /** * Return a portable function name from a JSON-RPC function name. - * Strip the "system." and "Service." prefixes added by some JSON-RPC clients. + * Strip the ".", "system." and "Service." prefixes added by some JSON-RPC clients. */ const string funcName(const string& f) { + if (length(f) > 1 && find(f, ".", 0) == 0) + return c_str(f) + 1; if (length(f) > 7 && find(f, "system.", 0) == 0) return c_str(f) + 7; if (length(f) > 8 && find(f, "Service.", 0) == 0) |