Hello,
I have this CGI script:

---//---
#!/usr/bin/perl -T -w

use strict;
use CGI;

$ENV{PATH} = '/var/www/cgi-bin/';
my $exec = 'search.pl';


my $c = CGI->new();
print $c->header(), $c->start_html(-title => "It's alive!\n"), "\n";

my $search = $c->param('search') || 'nobody';
!system $exec, "(cn=". $search ." *)" or die "$exec: $!\n";

print $c->end_html(), "\n";
---//---

When I run it from command line (./crap.pl), it works just fine.
But when I try to run it from apache, as a CGI script, I get this error in
error_log:

"Insecure dependency in system while running with -T switch at
/var/www/cgi-bin/crap.pl line 14., referer: http://frodo/crap.html";

Ps. Without taint mode, it works fine as a CGI script.

Reply via email to