Re: Weird error after a configuration change



On Apr 27, 10:56 pm, Brian McCauley <nobul...@xxxxxxxxx> wrote:
On Apr 27, 8:33 pm, skieros <nikos1...@xxxxxxxxx> wrote:

I have this part of script:

##############################################################
my $action = param('action');
#============ REDIRECT TO PROPER SCRIPT ===================
if( ($action eq 'Αποστολή!') && ($ENV{HTTP_REFERER} =~ /
index/) )
##############################################################

and iam gettign thsi error now:

[Fri Apr 27 22:28:11 2007] [error] [client 10.0.0.2] [Fri Apr 27
22:28:11 2007] admin.pl: Use of uninitialized value in string eq at D:\
\www\\cgi-bin\\admin.pl line 26., referer:http://dell/

Hmmm... that's usually a warning. Do you perhaps have as use warnings
FATAL in your code?

#!/usr/bin/perl -w
use strict;
use CGI::Carp qw(fatalsToBrowser);

Line 26 is the line with if.
All this happened when i deleted the d:\www\index.html file which was
pointing to d:\www\cgi-bin\index.pl and set apache to load /cgi-bin/
index.pl directly.

LOL!

So you are saying that "all you did" was to remove the referring page
and access the CGI script via a _direct_ URL (i.e. no referrer).

And now when your script tries to perform an operation on the address
of the referring page it finds that this is data item is undefined.

Well yes, er, it would.

This, of course, has nothing to do with Perl.

But its a perl error and also admin.pl receives data from index.pl and
check if a param is passed.
my $action = param('action');


.



Relevant Pages

  • Re: Weird error after a configuration change
    ... Hmmm... ... that's usually a warning. ... So you are saying that "all you did" was to remove the referring page ... and access the CGI script via a _direct_ URL. ...
    (comp.lang.perl.misc)
  • Re: log4j, NoClassDefFoundError
    ... In that case I am referring to malfunctioning code. ... environment variable without warning that Sun considers it a 'suboptimal solution' and has done so for a long time? ... ...Do you even agree that mentioning the environment ...
    (comp.lang.java.programmer)
  • Re: Simple-Yet Trivial Problem - Copy files from directory
    ... I need to copy all files with extension *.atm and *.ali to another ... script - but am not able to get what i need ... ... this is not a perl error, but system error; warning says the cp instruction ...
    (perl.beginners)
  • Re: Warning: "Project will be debugged with specific security permissions"
    ... It's a VS.NET warning box that I'm referring to and it's driving me crazy. ... my project and run in debug mode. ... I installed the latest Managed DirectX SDK (I think ...
    (microsoft.public.vsnet.debugging)
  • Re: Setting File Attribute to Non-Delete?
    ... I think that Permissions might be what Bob was referring to. ... The warning scares some people off. ... MS-MVP Windows Shell/User ... Talal Itani hunted and pecked: ...
    (microsoft.public.windowsxp.general)