Permalink
Browse files

decode $m->request_args->{Query} first to avoid double encode

  • Loading branch information...
sunnavy committed Feb 6, 2012
1 parent a53f343 commit 3227422eceb21f871531f4e037d710b38f48c891
Showing with 2 additions and 1 deletion.
  1. +2 −1 html/Callbacks/JSGantt/Elements/Tabs/Privileged
@@ -50,8 +50,9 @@ my $request_path = $HTML::Mason::Commands::r->path_info;
if ( $request_path =~ qr{^/Search/Results.html} ) {
my $tabs = PageMenu;
+ require Encode;
$tabs->child( 'gantt' => title => loc('Gantt Chart'),
- path => '/Search/JSGantt.html?Query=' .$m->request_args->{'Query'} );
+ path => '/Search/JSGantt.html?Query=' . Encode::decode_utf8 $m->request_args->{'Query'} );
}
</%INIT>

0 comments on commit 3227422

Please sign in to comment.