Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Security with open() in CGI scripts

by Trimbach (Curate)
on Feb 26, 2002 at 04:36 UTC ( [id://147476]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $template = $theme->{ThemeDir}."index.html";
    
  2. or download this
    my %themes = {1 => '/dir1/', 
                  2 => '/dir2/',
    ...
    my $theme = param(theme);
    my $filename = "$themes{$theme}.index.html";
    open (FILE, $filename);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-24 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found