Skip to content

Commit

Permalink
[FIXED JENKINS-17677] Avoiding excerpts likely to tickle a bug in the…
Browse files Browse the repository at this point in the history
… old json-lib.
  • Loading branch information
jglick committed Apr 25, 2013
1 parent 88deadd commit ea405aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jvnet/hudson/update_center/Plugin.java
Expand Up @@ -333,7 +333,7 @@ public JSONObject toJSON() throws IOException {
if (page!=null) {
json.put("wiki",page.getUrl());
String excerpt = getExcerptInHTML();
if (excerpt!=null)
if (excerpt!=null && !excerpt.startsWith("{"))
json.put("excerpt",excerpt);
String[] labelList = getLabels();
if (labelList!=null)
Expand Down

0 comments on commit ea405aa

Please sign in to comment.