Skip to content

Commit

Permalink
Fixed JENKINS-10241 (Filenames with & end up in changelog.xml resulting
Browse files Browse the repository at this point in the history
in invalid XML)

enclose filenames in cvs changelog in CDATA tag to allow &-signs
  • Loading branch information
alexlehm committed Jul 18, 2011
1 parent 39b91f5 commit 2a7002b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -79,9 +79,9 @@ private void printEntry(final PrintWriter output, final CVSEntry entry) {
final RCSFile file = (RCSFile) enumeration.nextElement();

output.println("\t\t<file>");
output.println("\t\t\t<name>" + file.getName() + "</name>");
output.println("\t\t\t<name><![CDATA[" + file.getName() + "]]></name>");
if(file.getFullName()!=null)
output.println("\t\t\t<fullName>" + file.getFullName() + "</fullName>");
output.println("\t\t\t<fullName><![CDATA[" + file.getFullName() + "]]></fullName>");
output.println("\t\t\t<revision>" + file.getRevision()
+ "</revision>");

Expand Down

0 comments on commit 2a7002b

Please sign in to comment.