]> git.koha-community.org Git - koha.git/commit
Bug 13815 - plack loose CGI qw(-utf8) flag creating incorrect utf-8 encoding everywhere
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 10 Mar 2015 12:35:03 +0000 (13:35 +0100)
committerChris Cormack <chris@bigballofwax.co.nz>
Sun, 7 Jun 2015 08:18:48 +0000 (20:18 +1200)
commitfefb788ff96558f8262d5c5138031f10506f6838
treecf5676447d2d9ee2fcdbe0fd131b3ca22b62cf8f
parent630faec194d5341f33e95704163d8022d5fe1519
Bug 13815 - plack loose CGI qw(-utf8) flag creating incorrect utf-8 encoding everywhere

This is major problem for plack installations with utf-8 encoding.

In this case, we are overriding CGI->new to setup utf-8 flag and
get correctly decoded $cgi->params, and reset syspref cache using
C4::Context->clear_syspref_cache

Test scenario:
1. under plack try to search with utf-8 charactes
2. try to find patron with utf-8 characters

Signed-off-by: Gaetan Boisson <gaetan.boisson@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 3cd086b6b6be08d902a479f302ccf18e55de911b)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
misc/plack/koha.psgi