Skip to content

Commit

Permalink
Item13894: Foswiki::decode does not decode in-place, so can't replace…
Browse files Browse the repository at this point in the history
… utf8::upgrade
  • Loading branch information
Crawford Currie committed Dec 14, 2015
1 parent dcf8bc6 commit a81649b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions RCSStoreContrib/lib/Foswiki/Store/Rcs/Store.pm
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ sub getRevisionDiff {
$rcs->revisionDiff( $topicObject->getLoadedRev(), $rev2, $contextLines );
foreach my $d (@$diffs) {
foreach my $i ( 1, 2 ) {
_decode( $d->[$i] );
$d->[$i] = _decode( $d->[$i] );
}
}
return $diffs;
Expand Down Expand Up @@ -331,8 +331,8 @@ sub _getAttachmentVersionInfo {
$this->getHandler( $topicObject->web, $topicObject->topic,
$attachment );
$info = $handler->getInfo( $rev || 0 );
_decode( $info->{author} );
_decode( $info->{comment} );
$info->{author} = _decode( $info->{author} );
$info->{comment} = _decode( $info->{comment} );
}

return $info;
Expand Down Expand Up @@ -368,8 +368,8 @@ sub getVersionInfo {
my $handler =
$this->getHandler( $topicObject->web, $topicObject->topic );
$info = $handler->getInfo($rev);
_decode( $info->{author} );
_decode( $info->{comment} );
$info->{author} = _decode( $info->{author} );
$info->{comment} = _decode( $info->{comment} );
}

# make sure there's at least author, date and version
Expand Down

0 comments on commit a81649b

Please sign in to comment.