Bug 28948: (QA follow-up) Convert to allow-list
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 3 Sep 2021 11:18:03 +0000 (12:18 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 28 Oct 2021 15:32:34 +0000 (17:32 +0200)
commit31e9ccfe70db09de407f05589fe3a28b70234cdb
tree0dc434eaf3a44b503a24d9e7455d2bf57615717f
parentc56b2db564139e11361d74c10348f6b0189fa5f5
Bug 28948: (QA follow-up) Convert to allow-list

This patch converts the code to use an allow-list as aposed to a
deny-list.  This is more 'fail safe' than requireing maintanence of a
deny-list.

We also switch to using db fields names for the list as aposed to api
mapped names. This way, the list can be re-used for non-api related
sanitising if required.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Library.pm
Koha/Object.pm
t/db_dependent/Koha/Object.t
t/db_dependent/Koha/Objects.t