From 679854b8bbc65d112071111bbd7f34a6a481fb30 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 4 Jun 2013 00:21:24 -0700 Subject: RT 4.0.13 --- rt/share/html/Elements/Menu | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'rt/share/html/Elements/Menu') 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 %# %# %# (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; -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'); +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 %>\ \ % } @@ -82,3 +82,6 @@ $toplevel => 1 $parent_id => '' $depth => 0 +<%init> +$id = $m->interp->apply_escapes($id, 'h'); + -- cgit v1.2.1