summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-travelmate/luasrc
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2020-06-26 19:35:58 +0200
committerDirk Brenken <dev@brenken.org>2020-06-26 19:35:58 +0200
commit06ce62b65d05806d39099b46102579eeff66aad2 (patch)
tree1a850a4260b69dc48fd9914a44c3182c3220e1e4 /applications/luci-app-travelmate/luasrc
parent558525783cf33a986efa33d23f5283b33a6c936e (diff)
luci-app-travelmate: qrcode fix
* escape more special chars which disturb qrcode generation Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-travelmate/luasrc')
-rw-r--r--applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm
index 228479966..d8625ff30 100644
--- a/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm
+++ b/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm
@@ -193,8 +193,8 @@ This is free software, licensed under the Apache License, Version 2.0
end
if ssid and enc and key then
- local e_ssid = string.gsub(ssid,"[\"\\';:, ]",[[\\\%1]])
- local e_key = string.gsub(key,"[\"\\';:, ]",[[\\\%1]])
+ local e_ssid = string.gsub(ssid,"[\"\\';:,()&`|<> ]",[[\\\%1]])
+ local e_key = string.gsub(key,"[\"\\';:,()&`|<> ]",[[\\\%1]])
if fs.access("/usr/bin/qrencode") then
qrcode = luci.sys.exec("/usr/bin/qrencode --inline --8bit --type=SVG --output=- 'WIFI:S:\"'" .. e_ssid .. "'\";T:'" .. enc .. "';P:\"'" .. e_key .. "'\";H:'" .. hidden .. "';'")