[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Problem with param


Hi,

I've upgraded my desktop to Fedora Core 4 and, after a lot of work
making CGI's work (security issues), I've run into a PERL problem with
passing parameters.

I had a code in my previous OS (Fedora Core 3) that worked propoerly.

This snippet used to work. It's taken from the documentation page
---------------
$webapp->param('CONFIG'=>\%CONFIG,
               'PARAM'=>\%PARAM,
               );
----------------

But now, when I try to retrieve the value of the parameter 'CONFIG' I
just get the string 'CONFIG' so a code like this
my %CONFIG=%{$self->param('CONFIG')};
doesn't work.

If I call $webapp->param(), it returns an array with all parameter
names and values.
---------------
print STDERR Dumper($self->param())
$VAR1 = 'CONFIG';
$VAR2 = {
           'URLBASE' => 'http://sitid.cpd.hi.inet/fotos/',
           'LDAP_HOST' => 'localhost:38900',
          'LDAP_BASE' => 'o=TID'
        };
$VAR3 = 'PARAM';
$VAR4 = {};
--------------

I can get a workaround of this but I guess something is broken
somewhere. Has anyone the same problem? Any idea of how can it be
fixed?

My system runs:
perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
  Platform:
    osname=linux, osvers=2.4.21-27.0.2.elsmp, archname=i386-linux-thread-multi
    uname='linux decompose.build.redhat.com 2.4.21-27.0.2.elsmp #1 smp
wed jan 12 23:35:44 est 2005 i686 i686 i386 gnulinux '

And the CGI::Application I am using is:
$CGI::Application::VERSION = '4.01';

-- 
Thanks
César

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.