summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openvpn/luasrc/controller/openvpn.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-openvpn/luasrc/controller/openvpn.lua')
-rw-r--r--applications/luci-app-openvpn/luasrc/controller/openvpn.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/applications/luci-app-openvpn/luasrc/controller/openvpn.lua b/applications/luci-app-openvpn/luasrc/controller/openvpn.lua
index a30ac81a99..b41fff21dc 100644
--- a/applications/luci-app-openvpn/luasrc/controller/openvpn.lua
+++ b/applications/luci-app-openvpn/luasrc/controller/openvpn.lua
@@ -31,8 +31,7 @@ function ovpn_upload()
http.setfilehandler(
function(meta, chunk, eof)
- local data = util.trim(chunk:gsub("\r\n", "\n")) .. "\n"
- data = util.trim(data:gsub("[\128-\255]", ""))
+ local data = chunk:gsub("\r\n", "\n")
if not fp and meta and meta.name == "ovpn_file" then
fp = io.open(file, "w")