Problems when using multiple CGI objects in a CGI script
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
participants (1)
-
dcook@prosentient.com.au