citromatik has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have encountered the following in production code:
if((defined ($command_str)) && ($command_str =~ /^(.*)$/)) {#taint che +cking $command_str = $1; # blah, blah
Does this make any sense? is there any benefit in reassigning $command_str this way?
Thanks in advance
citromatik
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Taint checking?
by jethro (Monsignor) on Jul 01, 2009 at 16:25 UTC | |
Re: Taint checking?
by JavaFan (Canon) on Jul 01, 2009 at 17:32 UTC | |
Re: Taint checking?
by graff (Chancellor) on Jul 02, 2009 at 04:04 UTC | |
Re: Taint checking?
by Anonymous Monk on Jul 01, 2009 at 16:21 UTC |
Back to
Seekers of Perl Wisdom