Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-07-28 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (186 votes), past polls