in reply to How to safely define a CGI program's application base directory

I couldn't replicate the error. How are you turning on taint mode? Taint mode must be called with -T on the cmdline and on the shebang line.

  • Comment on Re: How to safely define a CGI program's application base directory
  • Download Code

Replies are listed 'Best First'.
Re^2: How to safely define a CGI program's application base directory
by choroba (Cardinal) on Feb 11, 2013 at 00:28 UTC
    It should be easy. In Linux, I just tried
    AppBase=/qqq perl -T -e '#!/usr/bin/perl -T open my $FH, ">", $ENV{AppBase} or die $!;'
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ