]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 2 Sep 2016 14:21:51 +0000 (14:21 +0000)
commit762415a2ff18e5a1b783f8eff2275e7d47216343
treef4f6780d66517d2a0504269c819eb4ec8d18de2f
parent547b5f95f62a00e360c5cac4e416d30365429fcb
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>
tools/picture-upload.pl