From: Scott Cantor Date: Wed, 28 Oct 2009 17:14:37 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-243 X-Git-Tag: 2.3~28 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=commitdiff_plain;h=d5a3ae8a2a25cd80ddc8c7b9221bb14b48169c4c https://issues.shibboleth.net/jira/browse/SSPCPP-243 --- diff --git a/shibsp/handler/impl/AbstractHandler.cpp b/shibsp/handler/impl/AbstractHandler.cpp index 5f03710..dab28d8 100644 --- a/shibsp/handler/impl/AbstractHandler.cpp +++ b/shibsp/handler/impl/AbstractHandler.cpp @@ -604,7 +604,7 @@ long AbstractHandler::sendPostResponse( // Load the parameters into objects for the template. multimap& collection = respParam.m_collectionMap["PostedData"]; DDF param = postData.first(); - while (param.isstring()) { + while (!param.isnull()) { collection.insert(pair(param.name(), (param.string() ? param.string() : ""))); param = postData.next(); } @@ -652,7 +652,7 @@ DDF AbstractHandler::getPostData(const Application& application, const HTTPReque CGIParser cgi(request); pair params = cgi.getParameters(NULL); if (params.first == params.second) - return DDF(); + return DDF("parameters").list(); DDF child; DDF ret = DDF("parameters").list(); for (; params.first != params.second; ++params.first) {