From c20a6914316637a0c04aae215bcd135e2f22db0d Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Tue, 23 Oct 2018 23:16:38 +0200 Subject: luci-app-openvpn: file name fix * fix shellquote oversight of the last commit Signed-off-by: Dirk Brenken --- applications/luci-app-openvpn/luasrc/controller/openvpn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-openvpn/luasrc/controller/openvpn.lua b/applications/luci-app-openvpn/luasrc/controller/openvpn.lua index 2c153c4cd5..61592d0fac 100644 --- a/applications/luci-app-openvpn/luasrc/controller/openvpn.lua +++ b/applications/luci-app-openvpn/luasrc/controller/openvpn.lua @@ -18,7 +18,7 @@ function ovpn_upload() local util = require("luci.util") local uci = require("luci.model.uci").cursor() local upload = http.formvalue("ovpn_file") - local name = util.shellquote(http.formvalue("instance_name2")) + local name = string.gsub(util.shellquote(http.formvalue("instance_name2")), "'", "") local file = "/etc/openvpn/" ..name.. ".ovpn" if name and upload then -- cgit v1.2.3