From a55fd078e907209fb6b588372814909f7e478fab Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Tue, 23 Jun 2015 20:27:09 +1200 Subject: [PATCH] Revert "Bug 13815 - plack loose CGI qw(-utf8) flag creating incorrect utf-8 encoding everywhere" This reverts commit af127c124f1575a96cc3efca7eff0ef9135e88e6. Oops. --- misc/plack/koha.psgi | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/misc/plack/koha.psgi b/misc/plack/koha.psgi index a35eb77d0f..7acb5677c4 100644 --- a/misc/plack/koha.psgi +++ b/misc/plack/koha.psgi @@ -5,18 +5,6 @@ use lib qw( ./lib ); use Plack::Middleware::Debug; use Plack::App::Directory; -use CGI qw(-utf8 ); # we will loose -utf8 under plack -{ - no warnings 'redefine'; - my $old_new = \&CGI::new; - *CGI::new = sub { - my $q = $old_new->( @_ ); - $CGI::PARAM_UTF8 = 1; - C4::Context->clear_syspref_cache(); - return $q; - }; -} - BEGIN { # override configuration from startup script below: -- 2.39.5