X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Fshare%2Fhtml%2FElements%2FMenu;h=16535c8255c7a5717814d8d96f730a3a8db76339;hb=919e930aa9279b3c5cd12b593889cd6de79d67bf;hp=b56bacda81371d17a6b2c85f583d3537c94fb150;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/Elements/Menu b/rt/share/html/Elements/Menu index b56bacda8..16535c825 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-2015 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'); +