]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Ensure ampersands in URLs are & per HTML spec
authorDan Scott <dan@coffeecode.net>
Tue, 3 May 2011 20:48:48 +0000 (16:48 -0400)
committerDan Scott <dan@coffeecode.net>
Tue, 3 May 2011 20:48:48 +0000 (16:48 -0400)
commitc88c0ac5f43a408bca0fe337991517edc3aef2c1
treec8748f0529da5628305dae7571f3223cbb53e0b8
parentba77484053cd77f665c834aaa7a0f07f71709d80
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