]> git.koha-community.org Git - koha.git/commit
Bug 16886: Make the 'Upload patron images' tool plack safe
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 9 Jul 2016 12:13:35 +0000 (13:13 +0100)
committerFrédéric Demians <f.demians@tamil.fr>
Thu, 8 Sep 2016 19:55:45 +0000 (21:55 +0200)
commit4cf4751c08edb6830714cc6dd3408ccb089756cd
tree2ed3c2c3f648ea260ebd5786de6bbd5ee4accc04
parenta1fdbf92da71e0a4348bcff682b26576f88ccc38
Bug 16886: Make the 'Upload patron images' tool plack safe

Some vars are accessed from subroutine, but defined with my.
It causes at least the 2 followings errors:
Variable "$filetype" is not available at
/home/koha/src/tools/picture-upload.pl line 240.
Variable "$uploadfilename" is not available at
/home/koha/src/tools/picture-upload.pl line 241.

To avoid that, they are now declared with our.

Test plan:
Upload image for a patron and confirm that you get a "Result" table and
the errors do not longer appear in the logs.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 762415a2ff18e5a1b783f8eff2275e7d47216343)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
tools/picture-upload.pl