Re: CGI.pm and special characters in hidden inputs

From: Matt Garrish (matthew.garrish_at_sympatico.ca)
Date: 12/30/04


Date: Thu, 30 Dec 2004 00:01:47 -0500


"Matt Garrish" <matthew.garrish@sympatico.ca> wrote in message
news:_YKAd.32035$Tn1.1345695@news20.bellglobal.com...
>
> I'll see if I can find an explanation of this behaviour, even if it is
> getting off topic...
>

Alas, Google has let me down (or I can't find the right combination of
terms, at least). I still can't see much benefit in translating the entities
back to characters automatically when the form is submitted. The only
advantage would seem to be that it means transferring slightly less data on
the form submission. I suspect it has something to do with the attempts to
render entities as characters within visible form fields, but I would have
thought the hidden input type's value would be more along the lines of a
single-quoted string in Perl.

If someone has an official version of this behaviour, however, I'd be
interested in hearing what it is.

Matt