diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2014-09-15 20:44:48 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2014-09-15 20:59:00 -0700 |
| commit | 5b3efac57771fbc37874a3dd39d3df835cdd6133 (patch) | |
| tree | f653976031646a27771f39902ed9296a4c129f30 /rt/share/html/Search/Elements | |
| parent | 008524b8e963831999983769f7fec11f55a72f16 (diff) | |
RT 4.0.22
Diffstat (limited to 'rt/share/html/Search/Elements')
| -rw-r--r-- | rt/share/html/Search/Elements/ResultsRSSView | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rt/share/html/Search/Elements/ResultsRSSView b/rt/share/html/Search/Elements/ResultsRSSView index d08771124..a453a8603 100644 --- a/rt/share/html/Search/Elements/ResultsRSSView +++ b/rt/share/html/Search/Elements/ResultsRSSView @@ -46,8 +46,6 @@ %# %# END BPS TAGGED BLOCK }}} <%INIT> -use Encode (); - my $old_current_user; if ( $m->request_comp->path =~ RT->Config->Get('WebNoAuthRegex') ) { @@ -67,8 +65,8 @@ if ( $m->request_comp->path =~ RT->Config->Get('WebNoAuthRegex') ) { # Unescape parts $name =~ s/\%([0-9a-z]{2})/chr(hex($1))/gei; - # convert to perl strings - $name = Encode::decode_utf8($name); + # Decode from bytes to characters + $name = Encode::decode( "UTF-8", $name ); my $user = RT::User->new(RT->SystemUser); $user->Load($name); |
