in reply to Re^10: Recalcitrant placeholders
in thread Recalcitrant placeholders
What happens if you untaint the email address? I don't have a mysql to test against, and didn't feel like changing the database aspects. But to untaint the email entry of your hash, you just need to follow the general rules for laundering tainted data. I would assume that once it's untainted, the TEST would give 5 again (untested).
Example of untainting an email address hash entry:
(you should probably pick a stronger/more-accurate regex than I used for "valid email address"...)C:\Users\peter.jones\Downloads\TempData\perl>perl -T -M5.012 -Mwarning +s -MScalar::Util=tainted -le "my %h = (email => $ARGV[0]); print tain +ted($h{email}); $h{email} =~ m/\b([[:graph:]]+@[[:graph:]]+)\b/g and +$h{email} = $1; print tainted($h{email});" me@example 1 0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: Recalcitrant placeholders
by Bod (Parson) on Aug 05, 2021 at 23:24 UTC | |
by pryrt (Abbot) on Aug 05, 2021 at 23:59 UTC | |
by Bod (Parson) on Aug 06, 2021 at 13:14 UTC | |
by Bod (Parson) on Aug 08, 2021 at 18:29 UTC |