[mapguide-commits] r4409 - trunk/MgDev/Web/src/HttpHandler

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Dec 10 14:30:42 EST 2009


Author: brucedechant
Date: 2009-12-10 14:30:41 -0500 (Thu, 10 Dec 2009)
New Revision: 4409

Modified:
   trunk/MgDev/Web/src/HttpHandler/HttpGetSiteVersion.cpp
Log:
Fix for trac ticket 1195 - Implement RFC 87 - SiteInformation enhancements
http://trac.osgeo.org/mapguide/ticket/1195

Notes: 
- Small update to fix GetSiteVersion creating bad XML response.



Modified: trunk/MgDev/Web/src/HttpHandler/HttpGetSiteVersion.cpp
===================================================================
--- trunk/MgDev/Web/src/HttpHandler/HttpGetSiteVersion.cpp	2009-12-10 18:43:57 UTC (rev 4408)
+++ trunk/MgDev/Web/src/HttpHandler/HttpGetSiteVersion.cpp	2009-12-10 19:30:41 UTC (rev 4409)
@@ -130,6 +130,7 @@
 {
     STRING xml = L"";
 
+    xml += L"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
     if (m_userInfo->GetApiVersion() >= MG_API_VERSION(2,2,0))
     {
         xml += L"<SiteVersion xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"SiteVersion-2.2.0.xsd\">\n";
@@ -163,7 +164,6 @@
     xml += L"\t<Version>";
     xml += version;
     xml += L"</Version>\n";
-    xml += L"</SiteVersion>\n";
 
     if (m_userInfo->GetApiVersion() >= MG_API_VERSION(2,2,0))
     {



More information about the mapguide-commits mailing list