From c34f3d32a73b55afb07a6fe875fa6d24ad8f2a02 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 13 Dec 2019 11:44:41 +0000 Subject: [PATCH] turn array into string before base64 encoding datacite/datacite#897 --- app/controllers/concerns/paginatable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/concerns/paginatable.rb b/app/controllers/concerns/paginatable.rb index bf4587193..4aec4fd3b 100644 --- a/app/controllers/concerns/paginatable.rb +++ b/app/controllers/concerns/paginatable.rb @@ -44,7 +44,7 @@ def page_from_params(params) def make_cursor(results) # Base64-encode cursor - Base64.urlsafe_encode64(results.to_a.last[:sort], padding: false) + Base64.urlsafe_encode64(results.to_a.last[:sort].join(","), padding: false) end end end