perlquestion
david2008
Hi all,
<p>
I am using params::validate and want to switch it off in production where i use it with apache httpd and mod_perl. <br>
I set in the .cshrc.config PERL_NO_VALIDATION to 1.<br>
Afterwards in the local_httpd.config i use PassEnv PERL_NO_VALIDATION<br>
The parameter is passed well as i can verify it with warn $ENV{PERL_NO_VALIDATION}.<br>
</p>
Unfortunately i get the error:
<code>
The 'x' parameter (undef) to Y::foo was an 'undef', which is not one of the allowed types: scalar
at Y.pm line 70.
...
ModPerl::ROOT::ModPerl::Registry::z_2ecgi::handler('Apache2::RequestRec=SCALAR(0xb61b6a8)') called at ...
eval {...} called at ...
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xb6360c8)') called at ...
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xb6360c8)') called at ...
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xb61b6a8)') called at -e line 0
eval {...} called at -e line 0
</code>
When i run the same cgi through command line everything works fine.<br>
What is wrong here?<br>
Thanks,<br>
David