in reply to Re: escaping filenames taken in via user input
in thread escaping filenames taken in via user input
I do avoid the shell, as I stated. The only thing I do with the filename is pass it to Perl's builtin open.
As for what this CGI does; it takes a filename in and prints the contents of it to the browser. That's all. Literally. :) I eventually plan to add logging and possibly access control. I realize web servers already handle all these tasks exceptionally well, but the problem is I don't have access to the web server logs or configuration. This CGI is a workaround for the restricted system I'm using to host my site.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: escaping filenames taken in via user input
by Aristotle (Chancellor) on Oct 30, 2002 at 00:42 UTC | |
|
Re: Re: Re: escaping filenames taken in via user input
by Chady (Priest) on Oct 30, 2002 at 10:14 UTC | |
by revdiablo (Prior) on Oct 31, 2002 at 07:02 UTC |