]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 9 Apr 2021 13:45:07 +0000 (15:45 +0200)
commitc32d46b854a73e636b1568eab758868ea9d74a13
tree2dd7eb9c64fb5e229b22e8e34c624971f1d1f12e
parentd57c65c2bda1e21848043b8f961f366a94b9e142
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>
C4/Context.pm