diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-11-23 15:48:36 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-11-23 15:48:36 (GMT) |
commit | 1e61513520a441b0304d21b1d7c3b1fcf6ecc92c (patch) | |
tree | efc699c755d91a34152ce27050ffb2639bc25149 /Source/CTest/cmCTestUpdateHandler.cxx | |
parent | 761e477331a3a28bf3d517d6e3dd0ac0148f281f (diff) | |
download | CMake-1e61513520a441b0304d21b1d7c3b1fcf6ecc92c.zip CMake-1e61513520a441b0304d21b1d7c3b1fcf6ecc92c.tar.gz CMake-1e61513520a441b0304d21b1d7c3b1fcf6ecc92c.tar.bz2 |
ENH: Make more things XML safe
Diffstat (limited to 'Source/CTest/cmCTestUpdateHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestUpdateHandler.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx index 3972918..c3eff5d 100644 --- a/Source/CTest/cmCTestUpdateHandler.cxx +++ b/Source/CTest/cmCTestUpdateHandler.cxx @@ -296,13 +296,13 @@ int cmCTestUpdateHandler::UpdateDirectory(cmCTest *ctest_inst) { srevision2 = srevision1; } - os << "\t\t<File Directory=\"" << path << "\">" << fname + os << "\t\t<File Directory=\"" << cmCTest::MakeXMLSafe(path) << "\">" << cmCTest::MakeXMLSafe(fname) << "</File>\n" - << "\t\t<Directory>" << path << "</Directory>\n" - << "\t\t<FullName>" << file << "</FullName>\n" - << "\t\t<CheckinDate>" << sdate1 << "</CheckinDate>\n" - << "\t\t<Author>" << sauthor1 << "</Author>\n" - << "\t\t<Email>" << semail1 << "</Email>\n" + << "\t\t<Directory>" << cmCTest::MakeXMLSafe(path) << "</Directory>\n" + << "\t\t<FullName>" << cmCTest::MakeXMLSafe(file) << "</FullName>\n" + << "\t\t<CheckinDate>" << cmCTest::MakeXMLSafe(sdate1) << "</CheckinDate>\n" + << "\t\t<Author>" << cmCTest::MakeXMLSafe(sauthor1) << "</Author>\n" + << "\t\t<Email>" << cmCTest::MakeXMLSafe(semail1) << "</Email>\n" << "\t\t<Log>" << cmCTest::MakeXMLSafe(comment1) << "</Log>\n" << "\t\t<Revision>" << srevision1 << "</Revision>\n" << "\t\t<PriorRevision>" << srevision2 << "</PriorRevision>" @@ -313,18 +313,18 @@ int cmCTestUpdateHandler::UpdateDirectory(cmCTest *ctest_inst) << "\t\t<Revisions>\n" << "\t\t\t<Revision>" << srevision1 << "</Revision>\n" << "\t\t\t<PreviousRevision>" << srevision2 << "</PreviousRevision>\n" - << "\t\t\t<Author>" << sauthor1<< "</Author>\n" - << "\t\t\t<Date>" << sdate1 << "</Date>\n" + << "\t\t\t<Author>" << cmCTest::MakeXMLSafe(sauthor1) << "</Author>\n" + << "\t\t\t<Date>" << cmCTest::MakeXMLSafe(sdate1) << "</Date>\n" << "\t\t\t<Comment>" << cmCTest::MakeXMLSafe(comment1) << "</Comment>\n" - << "\t\t\t<Email>" << semail1 << "</Email>\n" + << "\t\t\t<Email>" << cmCTest::MakeXMLSafe(semail1) << "</Email>\n" << "\t\t</Revisions>\n" << "\t\t<Revisions>\n" << "\t\t\t<Revision>" << srevision2 << "</Revision>\n" << "\t\t\t<PreviousRevision>" << srevision2 << "</PreviousRevision>\n" - << "\t\t\t<Author>" << sauthor2<< "</Author>\n" - << "\t\t\t<Date>" << sdate2 << "</Date>\n" + << "\t\t\t<Author>" << cmCTest::MakeXMLSafe(sauthor2) << "</Author>\n" + << "\t\t\t<Date>" << cmCTest::MakeXMLSafe(sdate2) << "</Date>\n" << "\t\t\t<Comment>" << cmCTest::MakeXMLSafe(comment2) << "</Comment>\n" - << "\t\t\t<Email>" << semail2 << "</Email>\n" + << "\t\t\t<Email>" << cmCTest::MakeXMLSafe(semail2) << "</Email>\n" << "\t\t</Revisions>" << std::endl; } if ( mod == 'C' ) |