[Koha-bugs] [Bug 16154] Replace CGI->param with CGI->multi_param in list context

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 25 17:27:49 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16154

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #50203|0                           |1
        is obsolete|                            |
  Attachment #50204|0                           |1
        is obsolete|                            |
  Attachment #50205|0                           |1
        is obsolete|                            |
  Attachment #50206|0                           |1
        is obsolete|                            |
  Attachment #50229|0                           |1
        is obsolete|                            |

--- Comment #19 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 50644
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50644&action=edit
Bug 16154: CGI->multi_param - Declare a list

This patch replaces the occurrences of
  my @foo = $cgi->param('foo');
with
  my @foo = $cgi->multi_param('foo');

perl -p -i -e
's/^(\s*my\s*@\w+\s*=\s*)\$(cgi|input|query)\->param\(/$1\$$2\->multi_param\(/xms'
**/*.pl

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list