summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-06-02 04:00:16 -0700
committerIvan Kohler <ivan@freeside.biz>2012-06-02 04:00:16 -0700
commit2ae4fc4fc3044edd8c3dd205cd98e1a517654e63 (patch)
tree171108b7c4bdea46129cdeddafb2a2915d2ca11a
parenta805e954792ea580d1c7f5cbd1b00f482676164d (diff)
new escape flags in RT 3.8.12+ and 4.0.6+, RT#17928
-rw-r--r--FS/FS/Mason.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/Mason.pm b/FS/FS/Mason.pm
index 60b0b5fe0..a4650632d 100644
--- a/FS/FS/Mason.pm
+++ b/FS/FS/Mason.pm
@@ -573,6 +573,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(