Skip to content

Commit 425cc82

Browse files
authored
diff.jsp and DiffData cleanup (#4835)
1 parent 3105d63 commit 425cc82

File tree

2 files changed

+76
-76
lines changed

2 files changed

+76
-76
lines changed

opengrok-web/src/main/java/org/opengrok/web/PageConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ private boolean getFileRevision(DiffData data, String context, String[] filepath
276276
*/
277277
public DiffData getDiffData() {
278278
DiffData data = new DiffData(getPath().substring(0, getPath().lastIndexOf(PATH_SEPARATOR)),
279-
Util.htmlize(getResourceFile().getName()));
279+
getResourceFile().getName());
280280

281281
String context = req.getContextPath();
282282
String[] filepath = new String[2];
@@ -372,7 +372,7 @@ private void populateRevisionData(DiffData data) {
372372
try {
373373
data.revision = Diff.diff(data.file[0], data.file[1]);
374374
} catch (DifferentiationFailedException e) {
375-
data.errorMsg = "Unable to get diffs: " + Util.htmlize(e.getMessage());
375+
data.errorMsg = "Unable to get diffs: " + e.getMessage();
376376
}
377377
}
378378

@@ -384,7 +384,7 @@ private void populateRevisionURLDetails(DiffData data, String[] filePath) {
384384
filePath[i] + "@" + data.rev[i], null);
385385
data.param[i] = u.getRawQuery();
386386
} catch (URISyntaxException e) {
387-
LOGGER.log(Level.WARNING, "Failed to create URI: ", e);
387+
LOGGER.log(Level.WARNING, "Failed to create URI: ", Laundromat.launderLog(e.toString()));
388388
}
389389
});
390390
}

0 commit comments

Comments
 (0)