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:25:48 +0000 (23:25 -0400)
commitde7ba790fd2533bcf44ad7fd2f1255514ed9313c
tree1f47cf5b50bc10969e8f4af70ed1cea6c2137b14
parent252568aa8babdcc9508d3b3c7626543bfa648d99
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>
tools/viewlog.pl