$1$2<\/a>/g;
}
elsif ($path =~ /\.rpm$/) {
@@ -337,7 +337,7 @@ sub contents : Chained('buildChain') PathPart Args(1) {
die unless $res;
$c->stash->{title} = "Contents of ".$product->path;
- $c->stash->{contents} = "$res
";
+ $c->stash->{contents} = decode("utf-8", $res);
$c->stash->{template} = 'plain.tt';
}
diff --git a/src/root/plain.tt b/src/root/plain.tt
index 8ec217d0..0b2db510 100644
--- a/src/root/plain.tt
+++ b/src/root/plain.tt
@@ -5,6 +5,6 @@
[% jobset = build.jobset %]
[% job = build.job %]
-[% contents %]
+[% HTML.escape(contents) %]
[% END %]