Merge pull request #2243 from dibdot/ovpn-fix
luci-app-openvpn: file name fix
This commit is contained in:
commit
9deb5c11d9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue