Skip to content

Commit a53af66

Browse files
committed
be more careful with the patterns
1 parent 32082ef commit a53af66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opengrok-web/src/main/webapp/history.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,10 @@ document.domReady.push(function() {domReadyHistory();});
374374
showSummary = true;
375375
coutSummary = coutSummary.substring(0, summaryLength - 1);
376376
coutSummary = Util.htmlize(coutSummary);
377-
if (bugPage != null && bugPage.length() > 0) {
377+
if (bugPage != null && bugPage.length() > 0 && bugPattern != null) {
378378
coutSummary = Util.linkifyPattern(coutSummary, bugPattern, "$1", Util.completeUrl(bugPage + "$1", request));
379379
}
380-
if (reviewPage != null && reviewPage.length() > 0) {
380+
if (reviewPage != null && reviewPage.length() > 0 && reviewPattern != null) {
381381
coutSummary = Util.linkifyPattern(coutSummary, reviewPattern, "$1", Util.completeUrl(reviewPage + "$1", request));
382382
}
383383
}

0 commit comments

Comments
 (0)