Ensure ampersands in URLs are & per HTML spec
authorDan Scott <dan@coffeecode.net>
Tue, 3 May 2011 20:48:48 +0000 (16:48 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 20 Jul 2011 18:37:38 +0000 (14:37 -0400)
commitec6c6ee9dc7d73c55be47d463afe80b39784ecd7
tree8d7376123ecc3d52a3a58314d2589abc5631b783
parent26db4f55c0d7193ae73f0cac1ee39b144a85993e
Ensure ampersands in URLs are &amp; per HTML spec

The propagator variable defined in parts/header.tt2 holds the value
of the CGI query string - which, as it comes off the wire, is a simple
"&". The problem with this is perhaps best explained at
http://www.htmlhelp.com/tools/validator/problems.html#amp (and it
explains why "&copy_..." gets converted into a copyright symbol).

By passing the incoming query string through the TT url filter and
then replacing "&" with "&amp;" we avoid this problem at the source.
From there, we have to address the other locations in the code in
which we are manually appending GET variables.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/web/templates/default/opac/parts/header.tt2
Open-ILS/web/templates/default/opac/parts/record/summary.tt2