From: Jo-Philipp Wich Date: Fri, 8 Jun 2018 13:48:03 +0000 (+0200) Subject: luci-mod-admin-full: fix translation interpolation in JS confirm() calls X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=588c8618b6860cf88bfcf2262b104a86a5764f6e;p=oweals%2Fluci.git 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 --- 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 @@