summaryrefslogtreecommitdiffstats
path: root/buildhelpers
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-06-04 21:33:05 +0300
committerVaadin Code Review <review@vaadin.com>2013-06-05 07:46:02 +0000
commite6e752d4ad2d89c6df416fd7c17d6f18df0b33c5 (patch)
tree9020d3bae4a65ad6135fc05eba36dd6d9ced399f /buildhelpers
parent19d00822a1ec86e762cf1cab31a5fd5705fb42c1 (diff)
downloadvaadin-framework-e6e752d4ad2d89c6df416fd7c17d6f18df0b33c5.tar.gz
vaadin-framework-e6e752d4ad2d89c6df416fd7c17d6f18df0b33c5.zip
Correctly decode summaries containing quotes (#11769)
Change-Id: I98031bab90d3aa3f37e7dc71a9104f7b7a956590
Diffstat (limited to 'buildhelpers')
-rw-r--r--buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java9
1 files changed, 8 insertions, 1 deletions
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();
}