]> git.koha-community.org Git - koha.git/commit
Bug 28094: Deal with encoding for overriden sysprefs
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 6 Apr 2021 14:26:23 +0000 (16:26 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 19 Apr 2021 10:16:26 +0000 (12:16 +0200)
commitb0a677be7f106d5bf5dfec43d1d4ec2d57272e7c
treeabc9a57ac3539aa5d9f6e20d1f8ae9877ced3d4c
parentffd059075fd5788eb5456c52a675303f430a0787
Bug 28094: Deal with encoding for overriden sysprefs

The string we retrieved is UTF-8 encoded, to prevent encoding issue we
must decode it first.

Test plan:
Easily testable with LibraryName:
1. edit /etc/apache2/sites-available/kohadev.conf
2. Add
  RequestHeader add X-Koha-SetEnv "OVERRIDE_SYSPREF_LibraryName Library of ❤️"
3. restart_all
4. Hit the mainpage and look at the source (or title) and confirm that
the string is displayed correcty

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit c32d46b854a73e636b1568eab758868ea9d74a13)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Context.pm