Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Security with open() in CGI scripts

by Trimbach (Curate)
on Feb 26, 2002 at 04:36 UTC ( #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
Node Status?
node history
Node Type: note [id://147476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2015-08-31 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (351 votes), past polls