Skip to content

Commit

Permalink
Use Underscores HTML escaped interpolation in template for log and co…
Browse files Browse the repository at this point in the history
…mmand outputs
  • Loading branch information
KaspariK committed Feb 16, 2024
1 parent 60e4884 commit f8807ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions tronweb/coffee/actionrun.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ class module.ActionRunView extends Backbone.View
<tr><td>Node</td>
<td><%= displayNode(node) %></td></tr>
<tr><td>Raw original command</td>
<td><code class="command"><%= original_command %></code></td></tr>
<td><code class="command"><%- original_command %></code></td></tr>
<tr><td>Config command</td>
<td><code class="command"><%= raw_command %></code></td></tr>
<td><code class="command"><%- raw_command %></code></td></tr>
<% if (command) { %>
<tr><td>Last run command</td>
<td><code class="command"><%= command %></code></td></tr>
<td><code class="command"><%- command %></code></td></tr>
<% } %>
<tr><td>Exit codes</td>
<td>
Expand Down Expand Up @@ -211,15 +211,15 @@ class module.ActionRunView extends Backbone.View
</div>
<div class="span12 outline-block">
<h2>meta</h2>
<pre class="meta" style="display: none;"><%= meta.join('\\n') %></pre>
<pre class="meta" style="display: none;"><%- meta.join('\\n') %></pre>
</div>
<div class="span12 outline-block">
<h2>stdout</h2>
<pre class="stdout"><%= stdout.join('\\n') %></pre>
<pre class="stdout"><%- stdout.join('\\n') %></pre>
</div>
<div class="span12 outline-block">
<h2>stderr</h2>
<pre class="stderr"><%= stderr.join('\\n') %></pre>
<pre class="stderr"><%- stderr.join('\\n') %></pre>
</div>
<div id="action-run-history">
Expand Down
2 changes: 1 addition & 1 deletion tronweb/coffee/models.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class window.RefreshModel extends Backbone.Model
@scheduleRefresh()

disableRefresh: =>
console.log("Disableing refresh ")
console.log("Disabling refresh")
@enabled = false
@clear()

Expand Down

0 comments on commit f8807ff

Please sign in to comment.