[Koha-devel] Problems when using multiple CGI objects in a CGI script

dcook at prosentient.com.au dcook at prosentient.com.au
Tue Feb 25 07:48:35 CET 2020


Hi all,

 

Just thought I'd share an issue I encountered today. You can see the details
at https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24719, but it
boils down to how using multiple CGI objects (using the CGI module) can lead
to unexpected behaviour.

 

In this case, file uploads were failing in
/cgi-bin/koha/tools/stage-marc-import.pl because the CGI object created in a
different function in the included C4::Auth was setting and clearing global
variables behind the scenes just by calling CGI->new(). 

 

Just sharing this I suppose so that we're careful with our use of the CGI
module?

 

David Cook

Systems Librarian

Prosentient Systems

72/330 Wattle St

Ultimo, NSW 2007

Australia

 

Office: 02 9212 0899

Direct: 02 8005 0595

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20200225/d13a892e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 484 bytes
Desc: not available
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20200225/d13a892e/attachment.sig>


More information about the Koha-devel mailing list