mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
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:
+3
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user