luci-app-openvpn: file name fix

* fix shellquote oversight of the last commit

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken 2018-10-23 23:16:38 +02:00
parent 1a5b613b87
commit c20a691431

View file

@ -18,7 +18,7 @@ function ovpn_upload()
local util = require("luci.util") local util = require("luci.util")
local uci = require("luci.model.uci").cursor() local uci = require("luci.model.uci").cursor()
local upload = http.formvalue("ovpn_file") 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" local file = "/etc/openvpn/" ..name.. ".ovpn"
if name and upload then if name and upload then