From 0141732f87d04803d499792a6039a00a3ca9eeeb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 11 Nov 2022 00:42:14 +0100 Subject: 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 --- modules/luci-lua-runtime/luasrc/ucodebridge.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules/luci-lua-runtime') 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. -- cgit v1.2.3