]> git.koha-community.org Git - koha.git/commit
Bug 37157: Fix Malformed UTF-8 character in JSON string before decode_json
authorHammat Wele <hammat.wele@inlibro.com>
Fri, 21 Jun 2024 17:07:47 +0000 (17:07 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 22 Jul 2024 09:41:38 +0000 (11:41 +0200)
commit885a7c7c1649f0a9df391b9466d0efc759ac3dab
tree7dc55b1f955a79d3ba8855a91ce715fa5df5f1c5
parent81b21b6d118c9c1039d5c2f22153adafa3bda544
Bug 37157: Fix Malformed UTF-8 character in JSON string before decode_json

When we add a new identity provider and put some special characters in the Config or Mapping field, we got 500 error when we list the identity providers

To test:
1. Apply this patch.
2. Add a new identity provider
    2.1. fill the form
    2.2. click on «Add default Oauth configuration» and on «Add default Oauth mapping»
    2.3. put some special characters in Configuration and Mapping field
3. Save the form
=> Confirm the identity providers list is shown correctly

Also prove t/db_dependent/api/v1/provider.t.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 55b892dca46b1acdda0e962695699e4bf82d5de6)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 5193b6d5706cb9dac51b9af802939b926820c031)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Auth/Identity/Provider.pm
t/db_dependent/api/v1/provider.t [new file with mode: 0755]