Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How to make relative URL if "cgi-bin" is above the web root?

by merlyn (Sage)
on Jan 20, 2010 at 21:27 UTC ( #818565=note: print w/ replies, xml ) Need Help??


in reply to How to make relative URL if "cgi-bin" is above the web root?

Without commenting on the rest, I just noticed this:

$docfile = "../../htdocs/cowboys/$FORM{'3'}";
That's an attack vector accident just waiting to happen.

If you're creating this code, you need to read up on web security. A lot.

If you're just configuring it, please pass my concern along to the author.

-- Randal L. Schwartz, Perl hacker

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.


Comment on Re: How to make relative URL if "cgi-bin" is above the web root?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://818565]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-08-22 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (145 votes), past polls