in reply to Re^2: Validate CGI data
in thread Validate CGI data

Is there room for improvement? Yes, sure. But that really wasn't the point of the original post.
OK, then I'm confused. If you post code here, the implication is that you're posting your code for peer review and comment, in the intent to improve it or find the holes. So, I make a comment, and then you say "that's not the point of the original post". You are clear on what postings here are about, right?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.