Koha-clms/Koha/REST/Plugin
Jonathan Druart 1cb8d2a59d Bug 25774: Handle utf8 chars in REST API queries
We must utf8 encode the string before json decoding it.

Test plan:
Use "❤" and play with the library search (bug 25288) and Postman to
generate queries using it.

This patch prevents 500:
[2020/06/16 14:11:37] [ERROR] GET /api/v1/libraries: unhandled exception (Mojo::Exception)<<Wide character in subroutine entry at /kohadevbox/koha/Koha/REST/Plugin/Objects.pm line 107.>> Koha::REST::Plugin::Exceptions::__ANON__ /kohadevbox/koha/Koha/REST/Plugin/Exceptions.pm (73)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit b1af5a62cb)
2020-06-23 10:31:36 +02:00
..
Exceptions.pm Bug 25493: Make ->unhandled_exception use Koha::Logger 2020-05-19 15:20:43 +01:00
Objects.pm Bug 25774: Handle utf8 chars in REST API queries 2020-06-23 10:31:36 +02:00
Pagination.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
PluginRoutes.pm Bug 25131: (QA follow-up) Move test for needs_install outside the plugin 2020-04-16 19:21:19 +01:00
Query.pm Bug 24830: Fix parse_prefetch recursion and +count cases 2020-03-20 15:18:40 +00:00