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

luci-mod-rpc: fix authentication via query string parameter

Localize the `authenticatior()` and `session_retrieve()` functions into the
`index()` function scope so that they're retained when extracting the
function into the dispatcher bytecode cache.

Also allow access to the global scope since upvalues do not work reliably
due to the out-of-context byte code caching of index functions.

Fixes https://github.com/openwrt/luci/issues/1300#issuecomment-381352765
Fixes feefc600

 ("luci-mod-rpc: rework authentication and session handling")
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 9664fb3d
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