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 <JBoyer@equinoxinitiative.org>
Signed-off-by: Garry Collum <gcollum@gmail.com>
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;
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;