Skip to content

Commit

Permalink
ensure newlines are properly escaped (to not produce invalid JSON res…
Browse files Browse the repository at this point in the history
…ponses)

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1850438 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ghenzler committed Jan 4, 2019
1 parent cb760c7 commit 269ed3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private String getStatus(CheckStatus status) {
" { \"check\": \"%s\", \"status\": \"%s\", \"details\": \"%s\" }",
status.getCheckName(),
status.getState().name(),
status.getDetails());
status.getDetails().replace("\n", "\\n"));
}

}

0 comments on commit 269ed3d

Please sign in to comment.