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:44:48 -0700 |
| commit | ed1f84b4e8f626245995ecda5afcf83092c153b2 (patch) | |
| tree | 3f58bbef5fbf2502e65d29b37b5dbe537519e89d /rt/share/html/Search/Elements | |
| parent | fe9ea9183e8a16616d6d04a7b5c7498d28e78248 (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); |
