Re: [cgiapp] Dangerous CGI practice?

2007-02-11 Thread Cees Hek
On 2/9/07, Robert Hicks [EMAIL PROTECTED] wrote: Is it dangerous to pass relative paths to things instead of full paths? For example within my web app I have logging and I tell it where to log by 'logs/logname.log' and not '/home/public/logs/logname.log'. I also have my personal lib as: I

Re: [cgiapp] Dangerous CGI practice?

2007-02-11 Thread Ron Savage
Hi Cees You could also look at the FindBin module to find out the full path to your script file and use that to build the paths to your files. But there are issues with using this under mod_perl as well (see the docs). I think FindBin::Real deals with these issues. It's what I use, but not

[cgiapp] Dangerous CGI practice?

2007-02-08 Thread Robert Hicks
Is it dangerous to pass relative paths to things instead of full paths? For example within my web app I have logging and I tell it where to log by 'logs/logname.log' and not '/home/public/logs/logname.log'. I also have my personal lib as: 'use lib qw( lib/ );' and not: