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:
parent
1a5b613b87
commit
c20a691431
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue