git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
1a5b613
)
luci-app-openvpn: file name fix
author
Dirk Brenken
<redacted>
Tue, 23 Oct 2018 21:16:38 +0000
(23:16 +0200)
committer
Dirk Brenken
<redacted>
Tue, 23 Oct 2018 21:16:38 +0000
(23:16 +0200)
* fix shellquote oversight of the last commit
Signed-off-by: Dirk Brenken <redacted>
applications/luci-app-openvpn/luasrc/controller/openvpn.lua
patch
|
blob
|
history
diff --git
a/applications/luci-app-openvpn/luasrc/controller/openvpn.lua
b/applications/luci-app-openvpn/luasrc/controller/openvpn.lua
index 2c153c4cd57279884a0bafedca2c73f4a9015201..61592d0fac8472705256a94eec40e2a60d0895f1 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT