]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Sun, 25 Apr 2021 14:22:09 +0000 (14:22 +0000)
commit00c3197353c0670192961ebfc80ef8d8ec979ad1
treea2a28ad85010d8610b6eda32de446061cb515253
parentcdfe5a7c47f2d8f492be691d9d77309e0471e2c4
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>
(cherry picked from commit b0a677be7f106d5bf5dfec43d1d4ec2d57272e7c)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
C4/Context.pm