new escape flags in RT 3.8.12+ and 4.0.6+
authorIvan Kohler <ivan@freeside.biz>
Thu, 7 Jun 2012 23:09:30 +0000 (16:09 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 7 Jun 2012 23:09:30 +0000 (16:09 -0700)
FS/FS/Mason.pm

index 7143c72..4556b0e 100644 (file)
@@ -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(