in reply to run script in taint mode
Your 'untaint' operation is unneeded for a hardcoded path like what you gave.
I stripped your code down to essentials:
#!/usr/bin/perl -wT use strict; use warnings; use XML::Simple; # used to read the xml config file eval { my $parser = new XML::Simple(keeproot => 0); my $config_file = "blah.xml"; my $config_path = "/www/common/data"; my $file= "$config_path/$config_file"; my $_Config = $parser->XMLin($file); print "Content-Type: text/plain\n\n\$_config = $_Config \n"; }; if ($@) { print "Content-Type: text/plain\n\n$@\n"; }
and created a 'blah.xml' file containing only '<data/>' and it ran fine for me.
You need to give the exact error message. I suspect it doesn't mean what you think it does.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: run script in taint mode
by Anonymous Monk on Oct 20, 2005 at 06:45 UTC | |
by snowhare (Friar) on Oct 23, 2005 at 15:59 UTC |