Navigation Menu

Skip to content

Commit

Permalink
Merged #78 "Process bugtraq in the ticket description and comments"
Browse files Browse the repository at this point in the history
  • Loading branch information
gitblit committed May 15, 2014
2 parents b584e43 + 8873009 commit 032d822
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions releases.moxie
Expand Up @@ -22,6 +22,7 @@ r24: {
- Move repository deletion functions to the edit repository page AND allow deletion to be disabled (pr-180, ticket-67)
- Update the Korean translation (pr-184, ticket-69)
- Overhaul the EmptyRepositoryPage (ticket-73)
- Process bugtraq links in the ticket description and comments (ticket-78)
additions:
- Add My Tickets page (issue-215, ticket-15)
- Added CRUD functionality for Ticket Milestones (ticket-17)
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/com/gitblit/wicket/pages/TicketPage.java
Expand Up @@ -278,7 +278,8 @@ public TicketPage(PageParameters params) {
if (StringUtils.isEmpty(ticket.body)) {
desc = getString("gb.noDescriptionGiven");
} else {
desc = MarkdownUtils.transformGFM(app().settings(), ticket.body, ticket.repository);
String bugtraq = bugtraqProcessor().processPlainCommitMessage(getRepository(), repositoryName, ticket.body);
desc = MarkdownUtils.transformGFM(app().settings(), bugtraq, ticket.repository);
}
add(new Label("ticketDescription", desc).setEscapeModelStrings(false));

Expand Down Expand Up @@ -685,7 +686,8 @@ public void populateItem(final Item<Change> item) {
/*
* COMMENT
*/
String comment = MarkdownUtils.transformGFM(app().settings(), entry.comment.text, repositoryName);
String bugtraq = bugtraqProcessor().processPlainCommitMessage(getRepository(), repositoryName, entry.comment.text);
String comment = MarkdownUtils.transformGFM(app().settings(), bugtraq, repositoryName);
Fragment frag = new Fragment("entry", "commentFragment", this);
Label commentIcon = new Label("commentIcon");
if (entry.comment.src == CommentSource.Email) {
Expand Down

0 comments on commit 032d822

Please sign in to comment.