Fix vulnerable.
This commit is contained in:
parent
d86eb185dc
commit
f4b1e7abd6
|
@ -29,7 +29,7 @@
|
||||||
content_tag :div, paginate(@application_form_signups), class: "pagination pagination-centered"
|
content_tag :div, paginate(@application_form_signups), class: "pagination pagination-centered"
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
<%= pagination_html.gsub(/page_no#{count}=\d*/,"").gsub('&&','&').gsub(/page=(\d*)/m){|ff| ff.gsub("page=#{$1}","page=#{params[:page]}&page_no#{count}=#{$1}")}.html_safe %>
|
<%= pagination_html.gsub(/page_no#{count}=\d*/,"").gsub('&&','&').gsub(/page=(\d*)/m){|ff| ff.gsub("page=#{$1}","page=#{(params[:page] ? params[:page].to_s.to_i : nil)}&page_no#{count}=#{$1}")}.html_safe %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if count != 2 && @application_form.application_form_reviews.count >= 2 %>
|
<% if count != 2 && @application_form.application_form_reviews.count >= 2 %>
|
||||||
|
|
Loading…
Reference in New Issue