]> 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)
committerLiz Rea <wizzyrea@gmail.com>
Mon, 15 Jun 2015 21:21:14 +0000 (09:21 +1200)
commitaf127c124f1575a96cc3efca7eff0ef9135e88e6
tree83e87415e60f7b29704e543dcee3270ad02fc39d
parent433f4628b232058e90207b7b1c32c316b11450b1
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