in reply to Re: Bad Practice
in thread Bad Practice
The fact that it doesn't handle multiple select forms isn't necessary bad. If the forms used on the site don't have multiple selects anyway, it's not bad if you can't deal with them correctly.
You also say that this code allows to create any variable he wishes. I've looked at the given code a few times, but I can't see what you see. Unless you see a way of the web user being able to manipulate %input, I don't see how he can.
As for %XY, which is invalid in a URL, this code with treat it as if it had been %00 (which is valid). Is it a problem that the error isn't caught? CGI.pm leaves %XY as %XY, with no feedback. This code at least issues a warning (if they are turned on).
Your last remark is a bit silly. Do you really think CGI.pm will not break if you use it for things Lincoln Stein didn't envision when he wrote it?
I'm not saying the presented code is all perfect, not at all. But CGI.pm isn't as holy as you may think.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Bad Practice
by jasonk (Parson) on Feb 27, 2003 at 16:00 UTC | |
by Abigail-II (Bishop) on Feb 27, 2003 at 16:11 UTC | |
by ChemBoy (Priest) on Feb 27, 2003 at 16:36 UTC | |
by ihb (Deacon) on Feb 27, 2003 at 16:35 UTC | |
|
Re: Re: Bad Practice
by isotope (Deacon) on Feb 27, 2003 at 20:28 UTC |