[Koha-devel] Random data in CGI Vars
Julian Maurice
julian.maurice at biblibre.com
Thu Feb 23 14:15:36 CET 2023
Hello,
I've been encountering strange bugs on two different Koha instances
(both 21.11). When cataloguing new records, instead of the record being
saved, users are being redirected to an empty cataloguing form (like if
they clicked on "New record"). They have to use "Back" and submit the
form again until it works.
I suspected something going wrong in how the form data was being sent to
Koha so I added the following line in cataloguing/addbiblio.pl
warn Data::Dumper->Dump([{ $input->Vars }], ['Vars']) . "\n";
right after CGI->new
And indeed there is something going wrong. Some of the variables are
replaced by random data. Here's an example:
'tag_041_subfield_a_452653_624274' => '',
'' => "Ly[\x{1cf}^KJ{)Z\x{fffd}(-D<\x{fffd}\x{fffd}\x{fffd}BN",
'tag_856_code_x_883542_376496' => 'x',
Sometimes the 'op' parameter is replaced by random data, and that's why
we see this strange behaviour.
Have you ever experienced something like this ? Do you know where it
could come from ?
--
Julian Maurice
BibLibre
More information about the Koha-devel
mailing list