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.
In reply to Re: Re: escaping filenames taken in via user input
by revdiablo
in thread escaping filenames taken in via user input
by revdiablo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |