Fix reflected XSS vulnerability on the stats page

This commit is contained in:
Jyri-Petteri Paloposki 2024-07-25 14:53:04 +03:00
parent 0fc66953c0
commit c23ca0574e

View file

@ -4,8 +4,8 @@
unless @further unless @further
-%> -%>
<%= raw t('stats.click_to_show_actions_from_week', <%= 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])), :link => link_to("here", show_actions_from_chart_path(:id=>"#{params[:id].to_i}_end", :index => params[:index].to_i)),
:week => params[:index]) :week => params[:index].to_i)
-%> -%>
<% <%
end end