Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Sensible error handlingby crenz (Priest) |
on May 02, 2003 at 18:25 UTC ( [id://255115]=note: print w/replies, xml ) | Need Help?? |
AFAIK, ";" is a perfectly valid separator for parameters and can be used instead of "&" (eg. http://myserver/page?msg=Hello+World;empty=;number=0). So it seems your parameter parsing code has a problem as well -- the invalid URLs aren't. Apart from that, I second your statement -- it is often better to be a bit more liberal about validating your input than to throw unnecessary fatal errors at the user.
In Section
Meditations
|
|