Fix more parameter sanitisation issues and add tests

This commit is contained in:
Tom Hughes 2017-06-29 20:52:57 +01:00
parent 3763cbc7d4
commit fe1e28b4f4
10 changed files with 128 additions and 5 deletions

View file

@ -1,7 +1,7 @@
<p>
<% if @page > 1 %>
<%= link_to t('changeset.changeset_paging_nav.previous'), params.merge({ :page => @page - 1 }) %>
<%= link_to t('changeset.changeset_paging_nav.previous'), @params.merge({ :page => @page - 1 }) %>
<% else %>
<%= t('changeset.changeset_paging_nav.previous') %>
<% end %>
@ -11,7 +11,7 @@
<% if @notes.size < @page_size %>
<%= t('changeset.changeset_paging_nav.next') %>
<% else %>
<%= link_to t('changeset.changeset_paging_nav.next'), params.merge({ :page => @page + 1 }) %>
<%= link_to t('changeset.changeset_paging_nav.next'), @params.merge({ :page => @page + 1 }) %>
<% end %>
</p>