in reply to HTML::Entities not encoding @ or .
Perl script uses HTML::Entities to encode form input for sql sanitization on fields like fname, lname, email, address1, etc.I think I've said this before (or at least I should have) but: don't do that. Use placeholders or $dbh->quote that's what they're there for.
update: s/quiote/quote/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::Entities not encoding @ or .
by punch_card_don (Curate) on Feb 12, 2008 at 14:30 UTC | |
by Joost (Canon) on Feb 12, 2008 at 16:25 UTC | |
by Errto (Vicar) on Feb 12, 2008 at 19:46 UTC |