Skip to content

Commit

Permalink
Fix reflected XSS vulnerability on the stats page
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeiP committed Jul 25, 2024
1 parent 0fc6695 commit c23ca05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/stats/show_selection_from_chart.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
unless @further
-%>
<%= raw t('stats.click_to_show_actions_from_week',
:link => link_to("here", show_actions_from_chart_path(:id=>"#{params[:id]}_end", :index => params[:index])),
:week => params[:index])
:link => link_to("here", show_actions_from_chart_path(:id=>"#{params[:id].to_i}_end", :index => params[:index].to_i)),
:week => params[:index].to_i)
-%>
<%
end
Expand Down

0 comments on commit c23ca05

Please sign in to comment.