summaryrefslogtreecommitdiff
path: root/FS/FS/Mason.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-06-07 16:09:30 -0700
committerIvan Kohler <ivan@freeside.biz>2012-06-07 16:09:30 -0700
commit5711fd77e33646e11340c5fc8997cdc15fe76f25 (patch)
treedf271681d07085e561cc038931969f75631e1d13 /FS/FS/Mason.pm
parent02533bdefedd9541d55a8655a0ee7b3a835019b7 (diff)
new escape flags in RT 3.8.12+ and 4.0.6+
Diffstat (limited to 'FS/FS/Mason.pm')
-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 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(