]> git.koha-community.org Git - koha.git/commit
Bug 9951: Followup for tools/viewlog.pl
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 2 Apr 2013 13:17:31 +0000 (15:17 +0200)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 20 Apr 2013 03:26:34 +0000 (23:26 -0400)
commit5c4c680fa69c2af8643a61268b5568c57401e5b1
tree4e7f792918182659682bbd342f56487b3ee77d4b
parent22c88aa4cdfbe7389133d393199f57b5946e6605
Bug 9951: Followup for tools/viewlog.pl

Adds utf8 cgi parameter decoding.

Test plan: Enter diacritics in librarian field. Submit. Check.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
This is ok in this case, as we are not doing any post/get of binary
data, but I note from the man page

This makes CGI.pm treat all parameters as UTF-8 strings. Use this with
care, as it will interfere
with the processing of binary uploads. It is better to
manually select which fields are expected
to return utf-8 strings and convert them using code like
this:

  use Encode;
  my $arg = decode utf8=>param('foo');
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit de7ba790fd2533bcf44ad7fd2f1255514ed9313c)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
tools/viewlog.pl