From: Jason Boyer Date: Mon, 8 Feb 2021 19:20:32 +0000 (-0500) Subject: LP1914116: Apply html filter to mkurl() output X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=23683f188e8ef461bdb0bc6cb20ae623c857d0e7;p=working%2FEvergreen.git LP1914116: Apply html filter to mkurl() output Because of the way that mkurl() generates its query parameters they're generally escaped correctly, but nowhere do we run the output of mkurl() through the html filter to correctly handle ampersands. Rather than adding "|html" to every invocation of mkurl, it's just added to the macro directly. Signed-off-by: Jason Boyer Signed-off-by: Garry Collum --- diff --git a/Open-ILS/src/templates/opac/parts/header.tt2 b/Open-ILS/src/templates/opac/parts/header.tt2 index 5f397c3b7c..5db8723302 100644 --- a/Open-ILS/src/templates/opac/parts/header.tt2 +++ b/Open-ILS/src/templates/opac/parts/header.tt2 @@ -102,13 +102,13 @@ IF page; IF cgi.query_string; - page _ '?' _ cgi.query_string _ final; + page _ '?' _ cgi.query_string _ final | html; ELSE; - page _ final; + page _ final | html; END; ELSE; # staying on the current page - cgi.url("-absolute" => 1, "-path" => 1, "-query" => 1) _ final; + cgi.url("-absolute" => 1, "-path" => 1, "-query" => 1) _ final | html; END; END;