summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-lua-runtime
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-11-11 00:42:14 +0100
committerJo-Philipp Wich <jo@mein.io>2022-11-11 00:42:14 +0100
commit0141732f87d04803d499792a6039a00a3ca9eeeb (patch)
tree8f0abce4a1b3b9c2b9718bd838582fbf6d6be8b4 /modules/luci-lua-runtime
parent2cbfd64dcb63cf82102cc4dc2963a2f9da91e477 (diff)
luci-lua-runtime: preload luci.ltn12
Some existing legacy code expects the luci.ltn12 namespace to be implicitly available, even without requiring it beforehand. Fixes: #6091 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-lua-runtime')
-rw-r--r--modules/luci-lua-runtime/luasrc/ucodebridge.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/luci-lua-runtime/luasrc/ucodebridge.lua b/modules/luci-lua-runtime/luasrc/ucodebridge.lua
index 984fb0f7f2..d36b974a73 100644
--- a/modules/luci-lua-runtime/luasrc/ucodebridge.lua
+++ b/modules/luci-lua-runtime/luasrc/ucodebridge.lua
@@ -2,10 +2,11 @@
-- Licensed to the public under the Apache License 2.0.
local coroutine, assert, error, type, require = coroutine, assert, error, type, require
-local tmpl = require "luci.template"
-local util = require "luci.util"
-local http = require "luci.http"
-local sys = require "luci.sys"
+local tmpl = require "luci.template"
+local util = require "luci.util"
+local http = require "luci.http"
+local sys = require "luci.sys"
+local ltn12 = require "luci.ltn12"
--- LuCI ucode bridge library.