From 5711fd77e33646e11340c5fc8997cdc15fe76f25 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 7 Jun 2012 16:09:30 -0700 Subject: [PATCH] new escape flags in RT 3.8.12+ and 4.0.6+ --- FS/FS/Mason.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FS/FS/Mason.pm b/FS/FS/Mason.pm index 7143c721b..4556b0ec7 100644 --- a/FS/FS/Mason.pm +++ b/FS/FS/Mason.pm @@ -574,6 +574,8 @@ sub mason_interps { [ 'freeside' => '%%%FREESIDE_DOCUMENT_ROOT%%%' ], ], escape_flags => { 'h' => \&RT::Interface::Web::EscapeUTF8, + 'u' => \&RT::Interface::Web::EscapeURI, + 'j' => \&RT::Interface::Web::EscapeJS, 'js_string' => $js_string_sub, }, compiler => HTML::Mason::Compiler::ToObject->new( -- 2.11.0