Tom Insam wrote:
On Mon, 2006-03-20 at 10:15 +0000, Simon Wistow wrote:

Couldn't it just use ';' isntead of & or & - no url (un?)escaping needed whatsoever

That's a CGI.pm weirdness, and can't be relied upon. Plus, I'm sure
there will be other characters that need escaping in the url sometimes..

http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2

  B.2.2 Ampersands in URI attribute values

  The URI that is constructed when a form is submitted may be used as an
  anchor-style link (e.g., the href attribute for the A element).
  Unfortunately, the use of the "&" character to separate form fields
  interacts with its use in SGML attribute values to delimit character
  entity references. For example, to use the URI "http://host/?x=1&y=2";
  as a linking URI, it must be written <A
  href="http://host/?x=1&#38;y=2";> or <A
  href="http://host/?x=1&amp;y=2";>.

  We recommend that HTTP server implementors, and in particular, CGI
  implementors support the use of ";" in place of "&" to save authors
  the trouble of escaping "&" characters in this manner.

N

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to