]> git.koha-community.org Git - koha.git/commit
Bug 25440: Fix for "CGI::param called in list context" in smart-rules.pl
authorAndrew Nugged <nugged@gmail.com>
Sun, 10 May 2020 10:28:40 +0000 (13:28 +0300)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 13 Jul 2020 17:04:51 +0000 (17:04 +0000)
commitb59c5fc63a14013bcb8b43cce093b5d1866db96e
tree2462bafd8c3ce8ebb96e47f9678e4d616d006d96
parent1ccee84ddcaac20194042cb3d59163628442030f
Bug 25440: Fix for "CGI::param called in list context" in smart-rules.pl

This warning emitted:

CGI::param called in list context from /admin/smart-rules.pl line 262,
this can lead to vulnerabilities. See the warning in "Fetching the value
or values of a single named parameter" at CGI.pm line 412.

Explained here: https://metacpan.org/pod/CGI#Fetching-the-value-or-values-of-a-single-named-parameter

And because all these params are not multi-params, so simple "scalar .."
forcing for CGI->param is the fix. Changes are transparent and same
values should be assigned as before, just no more warnings.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit eb8a0ffcc1bb4d751daa4221bd37faa815904db8)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
admin/smart-rules.pl