From 588c8618b6860cf88bfcf2262b104a86a5764f6e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 8 Jun 2018 15:48:03 +0200 Subject: [PATCH] luci-mod-admin-full: fix translation interpolation in JS confirm() calls Use luci.http.write_json() in conjunction with translate() to write out unescaped translation strings in a manner suitable for interpolation inside JavaScript. Fixes #1870 Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/admin_network/iface_overview.htm | 4 ++-- .../luasrc/view/admin_network/wifi_overview.htm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview.htm index f5c182e16..82ce4ad07 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview.htm @@ -33,7 +33,7 @@