From e6e752d4ad2d89c6df416fd7c17d6f18df0b33c5 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 4 Jun 2013 21:33:05 +0300 Subject: [PATCH] Correctly decode summaries containing quotes (#11769) Change-Id: I98031bab90d3aa3f37e7dc71a9104f7b7a956590 --- .../vaadin/buildhelpers/FetchReleaseNotesTickets.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java b/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java index 588fe1aba1..5c3810099a 100644 --- a/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java +++ b/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java @@ -46,8 +46,15 @@ public class FetchReleaseNotesTickets { // This is the header continue; } + String summary = fields[1]; + if (summary.startsWith("\"") && summary.endsWith("\"")) { + // If a summary starts with " and ends with " then all quotes in + // the summary are encoded as double quotes + summary = summary.substring(1, summary.length() - 1); + summary = summary.replace("\"\"", "\""); + } System.out.println(ticketTemplate.replace("@ticket@", fields[0]) - .replace("@description@", fields[1])); + .replace("@description@", summary)); } urlStream.close(); } -- 2.39.5