From ce35d0852f8050a5d85c2b2ca1ea114dc7207de0 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Fri, 26 Jun 2020 19:35:58 +0200 Subject: [PATCH] luci-app-travelmate: qrcode fix * escape more special chars which disturb qrcode generation Signed-off-by: Dirk Brenken (cherry picked from commit 06ce62b65d05806d39099b46102579eeff66aad2) --- .../luci-app-travelmate/luasrc/view/travelmate/runtime.htm | 4 ++-- 1 file 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 .. "';'") -- 2.25.1