Jonathan Vanasco wrote:
On Feb 6, 2009, at 4:58 PM, Phil Carmody wrote:
In those name/value pairs, according to HTML 4 at least, the names
must begin with a letter [A-Za-z]. The empty string does not do so.
Garbage in, garbage out.
Part of me agrees with that philosophy.
Another part of me is more practical.
We had to stop using libapreq2 for cookies, because we found out that
wordpress (being a shoddy piece of software) was generating invalid
cookies at times. when apreq encountered it, it segfaulted.
so while the engineering part of me is okay with garbage in / garbage
out, the management side of me says sometimes you have to expect bad
data and try to make the best of it - otherwise you lose customers and
revenue.
The management part of me says that if you sell shoddy merchandise to
people, they are going to come back and hit you with it.
Presumably, if you get such kind of posted data from a form, it is
because you sent a shoddy form to the browser, which can submit such
shoddy data. Or because you have some shoddy javascript in the form,
which sends shoddy data to your server.
So we're still at the garbage level, but the other way around : garbage
out, gargabe in.
;-)