Skip to content

Commit

Permalink
fix(web): protect against XSS in test description
Browse files Browse the repository at this point in the history
  • Loading branch information
srabraham committed Feb 8, 2024
1 parent 6367023 commit eff725c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/client/index.html
Expand Up @@ -294,7 +294,7 @@
</div>
{{if _path|notempty}}
{{_path}}
<div class="story-links{{if Depth|more>-1}} depth-{{Depth}}{{/if}}"><a href="#test-{{_id}}">{{Title}}</a></div>
<div class="story-links{{if Depth|more>-1}} depth-{{Depth}}{{/if}}"><a href="#test-{{_id}}">{{Title|htmlSafe|ansiColours}}</a></div>
{{/_path}}
{{/if}}
{{if StackTrace|notempty}}<div class="depth-{{_maxDepth}} panic-summary">{{Error}}</div>{{/if}}
Expand Down Expand Up @@ -328,7 +328,7 @@
</div>
{{if _path|notempty}}
{{_path}}
<div class="story-links{{if Depth|more>-1}} depth-{{Depth}}{{/if}}"><a href="#test-{{_id}}">{{Title}}</a></div>
<div class="story-links{{if Depth|more>-1}} depth-{{Depth}}{{/if}}"><a href="#test-{{_id}}">{{Title|htmlSafe|ansiColours}}</a></div>
{{/_path}}
{{/if}}
</div>
Expand Down

0 comments on commit eff725c

Please sign in to comment.