Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: how to put links on the bottom of an image galleryby misc (Friar) |
on Aug 27, 2007 at 10:08 UTC ( [id://635262]=note: print w/replies, xml ) | Need Help?? |
I'd also test that the arguments page/count/whatever don't contain any sql injections. e.g. if $count in this command "SELECT * FROM your_table ORDER BY id LIMIT $offset, $count"; would contain "15; update users set password='hacked';" both statements will be executed: "SELECT * FROM your_table ORDER BY id LIMIT 0, 15; update users set password='hacked';" Since both count and offset should be numerical I'd do something like $count =~ s/\D*//g This will remove any nondigit character. michael
In Section
Seekers of Perl Wisdom
|
|