]> source.dussan.org Git - vaadin-framework.git/commitdiff
Correctly decode summaries containing quotes (#11769)
authorArtur Signell <artur@vaadin.com>
Tue, 4 Jun 2013 18:33:05 +0000 (21:33 +0300)
committerVaadin Code Review <review@vaadin.com>
Wed, 5 Jun 2013 07:46:02 +0000 (07:46 +0000)
Change-Id: I98031bab90d3aa3f37e7dc71a9104f7b7a956590

buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java

index 588fe1aba15946197619036432924f1669b943af..5c3810099a54cbc400d495b61b90fb3babf51df7 100644 (file)
@@ -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();
     }