PBWebGit: escape diff before inserting it into to the view

We used to escape a diff only after it was formatted. This would cause
some elements to hang the interface (like an iFrame)
This commit is contained in:
Pieter de Bie
2008-06-17 15:58:17 +02:00
parent 60db4c4e33
commit b8b92e6aaf
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -34,7 +34,9 @@ var selectCommit = function(a) {
var showDiffs = function() {
$("details").hide();
$("details").innerHTML = commit.diff;
$("details").innerHTML = commit.diff.escapeHTML();
highlightDiffs();
$("details").show();
}