We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c64ee15 commit 53bd09eCopy full SHA for 53bd09e
usr/lib/lua/luci/controller/arduino/index.lua
@@ -575,8 +575,9 @@ local function build_bridge_request(command, params)
575
}
576
577
if command == "raw" then
578
- if not_nil_or_empty(params[1]) then
579
- bridge_request["data"] = params[1]
+ params = table.concat(params, "/")
+ if not_nil_or_empty(params) then
580
+ bridge_request["data"] = params
581
end
582
return bridge_request
583
@@ -794,7 +795,11 @@ function build_bridge_mailbox_request()
794
795
796
797
- -- TODO check method?
798
+ if #params == 0 then
799
+ luci.http.status(400)
800
+ return
801
+ end
802
+
803
local bridge_request = build_bridge_request("raw", params)
804
if not bridge_request then
805
luci.http.status(403)
0 commit comments