]> git.koha-community.org Git - koha.git/commit
Bug 16154: CGI->multi_param - Force scalar context
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 29 Mar 2016 08:51:07 +0000 (09:51 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 16 May 2016 12:42:43 +0000 (14:42 +0200)
commit9c560d101984b41102ca145c6b503a445791a282
tree1b2151e6b98b3f3d4b24b10a5064faca4386d47d
parent59c3971177043c766a7f811f52ba34d689bf7c81
Bug 16154: CGI->multi_param - Force scalar context

This patch replaces the occurrences of
  $template->param( foo => $cgi->param('foo') );
with
  $template->param( foo => scalar $cgi->param('foo') );

perl -p -i -e 's/(\s*=>\s*)\$(cgi|input|query)\->param\(/$1scalar
\$$2\->param\(/xms' **/*.pl

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit f3e4b5bbb6b02d7bb6e89d84c0379666eb1e704f)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
55 files changed:
acqui/invoice-files.pl
acqui/invoice.pl
admin/aqbudgetperiods.pl
admin/aqbudgets.pl
admin/aqcontract.pl
admin/authorised_values.pl
admin/categorie.pl
admin/patron-attr-types.pl
admin/z3950servers.pl
authorities/auth_finder.pl
catalogue/ISBDdetail.pl
catalogue/MARCdetail.pl
catalogue/detail.pl
catalogue/itemsearch.pl
catalogue/labeledMARCdetail.pl
cataloguing/addbiblio.pl
cataloguing/additem.pl
cataloguing/merge.pl
cataloguing/plugin_launcher.pl
cataloguing/value_builder/EXAMPLE.pl
cataloguing/value_builder/marc21_linking_section.pl
cataloguing/value_builder/unimarc_field_210c.pl
cataloguing/value_builder/unimarc_field_4XX.pl
cataloguing/z3950_auth_search.pl
circ/circulation.pl
circ/returns.pl
circ/selectbranchprinter.pl
course_reserves/add_items.pl
course_reserves/course-details.pl
labels/label-edit-layout.pl
labels/label-edit-profile.pl
labels/label-edit-template.pl
members/files.pl
members/member.pl
members/memberentry.pl
members/mod_debarment.pl
members/moremember.pl
members/nl-search.pl
members/paycollect.pl
opac/opac-review.pl
opac/opac-search.pl
opac/opac-serial-issues.pl
opac/opac-shelves.pl
opac/opac-topissues.pl
opac/opac-user.pl
patron_lists/list.pl
patroncards/edit-profile.pl
patroncards/edit-template.pl
reports/guided_reports.pl
serials/serial-issues.pl
serials/serials-collection.pl
serials/showpredictionpattern.pl
serials/subscription-add.pl
serials/subscription-renew.pl
virtualshelves/shelves.pl