Skip to content
Commit ca57291b authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-lua-runtime: ensure proper forwarding of route arguments to cbi action



Ensure that the optional cbi() `config` argument is set to an empty table
if unspecified to ensure that the static call argument array is exactly
two elements long, otherwise call arguments are shifted and the invoked
method might not receive the expected parameter.

This fixes, among others, the dispatching of `arcombine()` targets.

Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 3ec7bff0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment