Fix vulnerable.

This commit is contained in:
BoHung Chiu 2022-11-01 21:05:27 +08:00
parent d86eb185dc
commit f4b1e7abd6
1 changed files with 1 additions and 1 deletions

View File

@ -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 %>