summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openvpn/luasrc
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-10-23 23:16:38 +0200
committerDirk Brenken <dev@brenken.org>2018-10-23 23:16:38 +0200
commitc20a6914316637a0c04aae215bcd135e2f22db0d (patch)
tree5c3c38e0dbd609965b7d5cbac6b3b11bbc8f0fcb /applications/luci-app-openvpn/luasrc
parent1a5b613b87b5623bb13c15c7af4de4108310d4ec (diff)
luci-app-openvpn: file name fix
* fix shellquote oversight of the last commit Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-openvpn/luasrc')
-rw-r--r--applications/luci-app-openvpn/luasrc/controller/openvpn.lua2
1 files changed, 1 insertions, 1 deletions
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