in reply to Need to print file contents on page

Hi,

You probably shouldn't allow arbitrary filenames, see WashFilename, use taint and launder dirty data ( WashFilename )

Also, obligatory, the checklists :) Basic debugging checklist , brian's Guide to Solving Any Perl Problem, CGI Help Guide , Troubleshooting Perl CGI scripts

cgi101 cgi102, more subs (more subs , cgi101)

  • Comment on Re: Need to print file contents on page (cgi101)