Skip to content

Commit

Permalink
Merge pull request #942 from Yelp/u/kkasp/TRON-1970-escape-html-tronweb
Browse files Browse the repository at this point in the history
Use Underscores HTML escaped interpolation in template for log and command outputs
  • Loading branch information
KaspariK authored Mar 8, 2024
2 parents e2c1b38 + f8807ff commit 3592600
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 3592600

Please sign in to comment.