Skip to content

Commit

Permalink
Merge pull request #1687 from brianvans/queues_view_xss
Browse files Browse the repository at this point in the history
Escape id parameter for queues view
  • Loading branch information
Chris C Cerami authored Jul 22, 2021
2 parents 8b0bf00 + efe7ba1 commit e8e2367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/server/views/queues.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<% if current_queue = params[:id] %>

<h1>Pending jobs on <span class='hl'><%= current_queue %></span></h1>
<h1>Pending jobs on <span class='hl'><%= h current_queue %></span></h1>
<form method="POST" action="<%=u "/queues/#{current_queue}/remove" %>" class='remove-queue'>
<input type='submit' name='' value='Remove Queue' onclick='return confirm("Are you absolutely sure? This cannot be undone.");' />
</form>
Expand Down

0 comments on commit e8e2367

Please # to comment.