diff options
author | Dirk Brenken <dev@brenken.org> | 2018-11-19 21:20:22 +0100 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2018-11-21 15:21:37 +0100 |
commit | e222003f5d6598290a51f541758f40d93637dfa7 (patch) | |
tree | d204919866789694c5036050c581513fba93009e /applications/luci-app-openvpn/luasrc/controller/openvpn.lua | |
parent | 18c6544057c6c26e2ccfdfcd0a9052d3a82b788a (diff) |
luci-app-openvpn: more changes & fixes
* fix possible exception in template based ovpn creation
* remove needless shellquote function in controller,
the filename will be checked on client side with JS
* enhance FileUpload behaviour in basic/advanced mode:
- change "auth_user_pass" to FileUpload
- cfg entries (even with default values) will be shown
- existing entries are now removable (incl. file unlink),
simply clear the appropriate textbox
* change "key_direction" option to boolean ListValue
* add "config" option to basic/advanced edit,
to make it possible to change the upload path in LuCI
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-openvpn/luasrc/controller/openvpn.lua')
-rw-r--r-- | applications/luci-app-openvpn/luasrc/controller/openvpn.lua | 2 |
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 61592d0fac..c9a932d870 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 = string.gsub(util.shellquote(http.formvalue("instance_name2")), "'", "") + local name = http.formvalue("instance_name2") local file = "/etc/openvpn/" ..name.. ".ovpn" if name and upload then |