https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25774
Jonathan Druart <jonathan.dru...@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #105930|0 |1 is obsolete| | Attachment #105932|0 |1 is obsolete| | --- Comment #7 from Jonathan Druart <jonathan.dru...@bugs.koha-community.org> --- Created attachment 105935 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105935&action=edit 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) -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/