in reply to Re: How to safely define a CGI program's application base directory
in thread How to safely define a CGI program's application base directory
Thank you for taking time to reply. That might work in some environments, but it assumes that all of the servers use the same path prefix (/var/www). I don't believe that's true in our case. I suppose I could include a note in the installation instructions that the application name must be the final directory element in the AppBAse environment variable. Then I could use a regular expression something like this:
m{^(/.+/MyApp/)$}
That should be sufficient to satisfy the untainting requirement, but I'm not sure whether it really makes the value "safe". Thanks again for responding so quickly.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to safely define a CGI program's application base directory
by choroba (Cardinal) on Feb 10, 2013 at 22:37 UTC |
In Section
Seekers of Perl Wisdom