From f8807ff7a8aa16d577789202d5c4620e9a958ebf Mon Sep 17 00:00:00 2001 From: Kevin Kaspari Date: Fri, 16 Feb 2024 09:48:12 -0800 Subject: [PATCH] Use Underscores HTML escaped interpolation in template for log and command outputs --- tronweb/coffee/actionrun.coffee | 12 ++++++------ tronweb/coffee/models.coffee | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tronweb/coffee/actionrun.coffee b/tronweb/coffee/actionrun.coffee index 7953dc16e..aa3cc8441 100644 --- a/tronweb/coffee/actionrun.coffee +++ b/tronweb/coffee/actionrun.coffee @@ -169,12 +169,12 @@ class module.ActionRunView extends Backbone.View Node <%= displayNode(node) %> Raw original command - <%= original_command %> + <%- original_command %> Config command - <%= raw_command %> + <%- raw_command %> <% if (command) { %> Last run command - <%= command %> + <%- command %> <% } %> Exit codes @@ -211,15 +211,15 @@ class module.ActionRunView extends Backbone.View

meta

- +

stdout

-
<%= stdout.join('\\n') %>
+
<%- stdout.join('\\n') %>

stderr

-
<%= stderr.join('\\n') %>
+
<%- stderr.join('\\n') %>
diff --git a/tronweb/coffee/models.coffee b/tronweb/coffee/models.coffee index d6fc1f15a..3609e034c 100644 --- a/tronweb/coffee/models.coffee +++ b/tronweb/coffee/models.coffee @@ -34,7 +34,7 @@ class window.RefreshModel extends Backbone.Model @scheduleRefresh() disableRefresh: => - console.log("Disableing refresh ") + console.log("Disabling refresh") @enabled = false @clear()