From cc01770fa1cf09b729dd931df77b149d1b20d2ef Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 20 Jan 2020 19:16:59 +0100 Subject: luci-app-openvpn: allow and restrict file uploads to /etc/openvpn/ Signed-off-by: Jo-Philipp Wich --- applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua') diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua index cce850fe0b..d15aaeb4fb 100644 --- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua +++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua @@ -838,6 +838,8 @@ for _, option in ipairs(params) do o.value = option[3] elseif option[1] == FileUpload then + o.initial_directory = "/etc/openvpn" + function o.cfgvalue(self, section) local cfg_val = AbstractValue.cfgvalue(self, section) -- cgit v1.2.3