]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Force-encode CGI param values to prevent decode errors
authorBill Erickson <berick@esilibrary.com>
Thu, 11 Aug 2011 20:25:50 +0000 (16:25 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 11 Aug 2011 20:25:50 +0000 (16:25 -0400)
commitf1ed6fa6b514a8e730251b93487bffb9505bd185
treefa8de8f20a9f35f8a1bd1552aea22193284ade64
parentd9fac3e6133c13a9992bc0af3ef951fdd0cb9ea3
Force-encode CGI param values to prevent decode errors

CGI.pm decode()'s parameter values, so if it encounters a value that
is already decoded, it will croak and kill the page.  Proactively encode
paramter values so decode() won't fail.

The better solution may be to determine how we get such data, but
until then, let's allow the t-pac to work on funky data.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
Open-ILS/web/templates/default/opac/parts/header.tt2