]> git.evergreen-ils.org Git - working/Evergreen.git/commit
TPAC: Teach mkurl() to discard POST params
authorDan Scott <dscott@laurentian.ca>
Sat, 10 Mar 2012 17:36:08 +0000 (12:36 -0500)
committerThomas Berezansky <tsbere@mvlc.org>
Sat, 10 Mar 2012 17:48:34 +0000 (12:48 -0500)
commit4a34d78093052fde921d5c73ba96673515441b8b
treea678718322a83251cc2e5774ea89c0d39e5c44c3
parenta8076f5eefa9eec90a423ab85665659eb78a2e36
TPAC: Teach mkurl() to discard POST params

Unless we explicitly ask for POST params with the "params" argument to
mkurl(), prevent them from propagating. (Can't think of situations when
we would want to propagate a POST param, but we err on the side of
flexibility so...)

Thanks to Thomas Berezansky for suggesting the CGI url_param() method of
filtering POST params.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/templates/opac/parts/header.tt2