lib/rodauth/features/oauth_management_base.rb in rodauth-oauth-1.2.0 vs lib/rodauth/features/oauth_management_base.rb in rodauth-oauth-1.3.0
- old
+ new
@@ -21,12 +21,10 @@
def oauth_management_pagination_link(page, label: page, current: false, classes: "")
classes += " disabled" if current || !page
classes += " active" if current
if page
- params = request.GET.merge("page" => page).map do |k, v|
- v ? "#{CGI.escape(String(k))}=#{CGI.escape(String(v))}" : CGI.escape(String(k))
- end.join("&")
+ params = URI.encode_www_form(request.GET.merge("page" => page))
href = "#{request.path}?#{params}"
<<-HTML
<li class="page-item #{classes}" #{'aria-current="page"' if current}>