Collapse feeds to a single array, sanitize JSON strings.
authorScott Cantor <cantor.2@osu.edu>
Sat, 6 Nov 2010 19:19:53 +0000 (19:19 +0000)
committerScott Cantor <cantor.2@osu.edu>
Sat, 6 Nov 2010 19:19:53 +0000 (19:19 +0000)
shibsp/handler/impl/DiscoveryFeed.cpp

index fbad37a..1298bc1 100644 (file)
@@ -304,7 +304,8 @@ void DiscoveryFeed::feedToFile(const Application& application, string& cacheTag)
             ofstream ofile(fname.c_str());
             if (!ofile)
                 throw ConfigurationException("Unable to create feed in ($1).", params(1,fname.c_str()));
-            m->outputFeed(ofile);
+            bool first = true;
+            m->outputFeed(ofile, first);
             ofile.close();
             m_feedQueue.push(make_pair(feedTag, now));
         }
@@ -338,7 +339,8 @@ void DiscoveryFeed::feedToStream(const Application& application, string& cacheTa
         }
 
         cacheTag = feedTag;
-        m->outputFeed(os);
+        bool first = true;
+        m->outputFeed(os, first);
     }
     else {
         throw MetadataException("MetadataProvider does not support discovery feed.");