Re: Weird error after a configuration change



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?

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.

.



Relevant Pages

  • Re: Weird error after a configuration change
    ... 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. ... But its a perl error and also admin.pl receives data from index.pl and ...
    (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: 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: Keyboard/Serial port monitoring using select()
    ... hmmm, just like I showed! ... >int setterm ... See below for the warning about line 69. ... Here are the warnings gcc provided: ...
    (comp.os.linux.development.apps)
  • Re: Ping David
    ... You're not referring to goatse? ... >> asshole photo to which David posted a link last week. ... He did give a warning. ...
    (alt.marketing.online.ebay)