in reply to Re^3: untainting or encoding for shelled sqlplus update
in thread untainting or encoding for shelled sqlplus update
For the least amount of work, I might use something like Interpolate and turn that in to something like:my $sql = <<EOT select blah, blahblah from blah_etc where foo = '$bar' EOT
(with %quote properly defined through Interpolate)my $sql = <<EOT select blah, blahblah from blah_etc where foo = $quote{$bar} EOT
But even that is a lot of tedious work if there is a lot of SQL to change. I could be wrong, but I don't think it would be much more work to just go ahead and use DBI to execute the SQL and return results.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: untainting or encoding for shelled sqlplus update
by goibhniu (Hermit) on May 15, 2008 at 21:05 UTC | |
by runrig (Abbot) on May 15, 2008 at 21:28 UTC |