webby has asked for the wisdom of the Perl Monks concerning the following question:
OK, to be honest, $class is actually a variable that *was* tainted, but has since been untainted (definitely - even checked with the is_taint sub in perlsec), but it is just a scalar as in the example. When taint checking is not enabled, this works perfectly. When it is on, the following line returns undef:my $class = 'Classes::SomeChild'; if {$class->isa('Classes::SomeParent')) { my $object = $class->new(); my $results = $object->doSomething(); }
Why is it so?$class->isa('Classes::SomeParent');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: isa() and taint checking
by chromatic (Archbishop) on Oct 17, 2002 at 15:44 UTC | |
by webby (Acolyte) on Oct 17, 2002 at 16:20 UTC | |
|
Re: isa() and taint checking
by antifun (Sexton) on Oct 17, 2002 at 15:57 UTC | |
by webby (Acolyte) on Oct 17, 2002 at 16:35 UTC | |
by bbfu (Curate) on Oct 17, 2002 at 18:45 UTC | |
by chromatic (Archbishop) on Oct 17, 2002 at 19:08 UTC | |
by bbfu (Curate) on Oct 17, 2002 at 21:11 UTC | |
by antifun (Sexton) on Oct 17, 2002 at 19:04 UTC |