perlron has asked for the wisdom of the Perl Monks concerning the following question:
- update is that i have seen that setting the variable $CGI::Application::LIST_CONTEXT_WARN to 0 provides a way to prevent this noise in the server logs.GI::param called in list context from package CGI::Session line 364, t +his can lead to vulnerabilities. See the warning in "Fetching the val +ue or values of a single named parameter" at /Users/XXXXXX/perl5/perl +brew/perls/perl-5.10.1/lib/5.10.1/CGI.pm line 425., referer: http://c +ismun.local/cgi-bin/register.cgi
I tried testing replacing it with the statement with the two options below, but the script dies without any output to the browser (blank page)and surprisingly even the debug statement is not appearing in the log file.sub register_delegate{ my $self = shift; my $session = $self->session(); my $query = $self->query(); my $countries = createHTMLDropDown("../files/country_listv2.txt"); #clearing the session before writing new values. $session->clear(); #this line of code causes the error. # $session->save_param(); # $self->log->debug("after calling save param"); my %ret_params = ( 'session_id' => $session->id(), 'country_list_dd' => $countries, ); return $self->tt_process('dlg_register.tt',\%ret_params); }
but it still dies without an error message. Thanks in advance for any tips.$session->save_param(scalar $query->param('s_addr')) or die $!;
|
|---|