cmac has asked for the wisdom of the Perl Monks concerning the following question:
This site runs with taint checking. The code above gets the following fatal error during Apache startup:opendir DIR, DB_DIREC or die "can't open direc ".DB_DIREC.": $!"; my @dels = grep /^__/, readdir(DIR); closedir DIR; for (@dels) {substr($_, 0, 0) = DB_DIREC.'/'} if (@dels) {unlink @dels}
There is nothing like "user input" anywhere near this sequence. Suggestions as to how to get rid of this error will be much appreciated.[error] Insecure dependency in unlink while running with -T switch at +/usr/local/apache2/plib/Central.pm line 189.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hard-to-understand taint error
by CountZero (Bishop) on Feb 18, 2009 at 06:07 UTC | |
by cmac (Monk) on Feb 18, 2009 at 08:39 UTC | |
by ww (Archbishop) on Feb 18, 2009 at 13:23 UTC | |
by ikegami (Patriarch) on Feb 18, 2009 at 14:27 UTC | |
by ww (Archbishop) on Feb 18, 2009 at 15:56 UTC | |
| |
by lostjimmy (Chaplain) on Feb 18, 2009 at 14:31 UTC | |
by ikegami (Patriarch) on Feb 18, 2009 at 14:39 UTC | |
by cmac (Monk) on Feb 18, 2009 at 06:50 UTC | |
by CountZero (Bishop) on Feb 18, 2009 at 20:17 UTC | |
|
Re: hard-to-understand taint error
by ikegami (Patriarch) on Feb 18, 2009 at 05:52 UTC | |
|
Re: hard-to-understand taint error
by Anonymous Monk on Feb 18, 2009 at 06:03 UTC |