Bug 36235: Encode system preference data with encodeURIComponent
authorLucas Gass <lucas@bywatersolutions.com>
Tue, 5 Mar 2024 16:25:46 +0000 (16:25 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 12 Mar 2024 16:47:35 +0000 (17:47 +0100)
commit13cb1a78ef090c701d8ba977aba4bb1dafd716fb
tree173c78fef9f849d23b9edd38d1a30d779aae1466
parentf6ec375be2dfa7f65949f9dbc3b0b6156151ba66
Bug 36235: Encode system preference data with encodeURIComponent

To test:
1. Add some data to a freetext system preference like IntranetUserJS or AdditionalFieldsInZ3950ResultAuthSearch that includes a semicolon;
2. Save the pref and reload the page or check the DB. Everything after the semicolon is removed.
3. Apply patch, try again. Data should remain as is.

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/js/fetch/system-preferences-api-client.js