diff options
Diffstat (limited to 'rt/share/html/Elements/Menu')
-rwxr-xr-x | rt/share/html/Elements/Menu | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/rt/share/html/Elements/Menu b/rt/share/html/Elements/Menu index b56bacda8..b2a2fb638 100755 --- a/rt/share/html/Elements/Menu +++ b/rt/share/html/Elements/Menu @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC %# <sales@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -61,8 +61,8 @@ % if ($child->raw_html) { <% $child->raw_html |n %> % } else { -% my $url = (not $child->path or $child->path =~ m{^\w+:/}) ? $child->path : RT->Config->Get('WebPath').$child->path; -<a id="<%$item_id%>" class="menu-item <% $child->class || '' %>"<% $child->path ? ' href="'.$url.'"' : '' |n%><% $child->target ? ' target="'.$child->target.'"' : '' |n %>>\ +% my $url = $m->interp->apply_escapes((not $child->path or $child->path =~ m{^\w+:/}) ? $child->path : RT->Config->Get('WebPath').$child->path, 'h'); +<a id="<%$item_id%>" class="menu-item <% $child->class || '' %>"<% $child->path ? ' href="'.$url.'"' : '' |n%><% $child->target ? ' target="'.$m->interp->apply_escapes($child->target, 'h').'"' : '' |n %>>\ <% $child->escape_title ? $m->interp->apply_escapes($child->title, 'h') : $child->title |n %>\ </a>\ % } @@ -82,3 +82,6 @@ $toplevel => 1 $parent_id => '' $depth => 0 </%ARGS> +<%init> +$id = $m->interp->apply_escapes($id, 'h'); +</%init> |