From: Rafał Miłecki Date: Wed, 23 Sep 2020 11:57:30 +0000 (+0200) Subject: luci-base: don't append object.method to the RPC url X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=b17ec0926d9519da7d5cd22a60c05c93bcc8292c;p=openwrt-luci.git luci-base: don't append object.method to the RPC url It was a cosmetic feature that doesn't work anymore with the latest uhttpd ubus API. Adding RESTful API resulted in treating URL part following the /ubus/ as the new API request. Suggested-by: Rafał Miłecki Fixes: #4465 Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/htdocs/luci-static/resources/rpc.js b/modules/luci-base/htdocs/luci-static/resources/rpc.js index 7bfc913367..f37f7bb6a4 100644 --- a/modules/luci-base/htdocs/luci-static/resources/rpc.js +++ b/modules/luci-base/htdocs/luci-static/resources/rpc.js @@ -33,9 +33,6 @@ return baseclass.extend(/** @lends LuCI.rpc.prototype */ { req[i].params[2] ); } - else if (req.params) { - q += '/%s.%s'.format(req.params[1], req.params[2]); - } return request.post(rpcBaseURL + q, req, { timeout: (L.env.rpctimeout || 20) * 1000,