luci-app-statistics: protect nested formating litteral 5490/head
authorMartin Schitter <ms+git@mur.at>
Sat, 6 Nov 2021 11:52:51 +0000 (12:52 +0100)
committerMartin Schitter <ms+git@mur.at>
Sat, 6 Nov 2021 11:52:51 +0000 (12:52 +0100)
Signed-off-by: Martin Schitter <ms+git@mur.at>
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/olsrd.js

index 19e217ab9561a1ed13e09b83e7dc1da47783f9a7..cafe2ac70ed5f31f02a05aa7a432f8dec94333e5 100644 (file)
@@ -89,7 +89,8 @@ return baseclass.extend({
                                opts[dsn2] = { color: "0000ff", title: "NLQ (%s)".format(host), flip: true };
 
                                g.push({
-                                       title: "%H: Signal Quality (%s)".format(host), vlabel: "ETX",
+                                       title: "%%H: Signal Quality (%s)".format(host),
+                                       vlabel: "ETX",
                                        number_format: "%5.2lf", detail: true,
                                        data: {
                                                types: [ "signal_quality" ],