From 1205fe4a284d86e6410eafa4a606a5665d8d2bd6 Mon Sep 17 00:00:00 2001 From: cantor Date: Sat, 6 Nov 2010 19:19:53 +0000 Subject: [PATCH] Collapse feeds to a single array, sanitize JSON strings. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/branches/REL_2@3367 cb58f699-b61c-0410-a6fe-9272a202ed29 --- shibsp/handler/impl/DiscoveryFeed.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shibsp/handler/impl/DiscoveryFeed.cpp b/shibsp/handler/impl/DiscoveryFeed.cpp index fbad37a..1298bc1 100644 --- a/shibsp/handler/impl/DiscoveryFeed.cpp +++ b/shibsp/handler/impl/DiscoveryFeed.cpp @@ -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."); -- 2.1.4