#include <boost/bind.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/algorithm/string.hpp>
+#include <xercesc/util/XMLUniDefs.hpp>
#include <xmltooling/XMLToolingConfig.h>
#include <xmltooling/util/PathResolver.h>
#include <xmltooling/util/XMLHelper.h>
};
AttributeCheckerHandler::AttributeCheckerHandler(const DOMElement* e, const char* appId)
- : AbstractHandler(e, Category::getInstance(SHIBSP_LOGCAT".AttributeCheckerHandler"), &g_Blocker)
+ : AbstractHandler(e, Category::getInstance(SHIBSP_LOGCAT ".AttributeCheckerHandler"), &g_Blocker)
{
if (!SPConfig::getConfig().isEnabled(SPConfig::InProcess))
return;
string attrs(XMLHelper::getAttrString(e, nullptr, attributes));
if (!attrs.empty()) {
+ trim(attrs);
split(m_attributes, attrs, is_space(), algorithm::token_compress_on);
if (m_attributes.empty())
throw ConfigurationException("AttributeChecker unable to parse attributes setting.");
request.setResponseHeader("Expires","Wed, 01 Jan 1997 12:00:00 GMT");
request.setResponseHeader("Cache-Control","private,no-store,no-cache,max-age=0");
- ifstream infile(m_template);
+ ifstream infile(m_template.c_str());
if (infile) {
TemplateParameters tp(nullptr, request.getApplication().getPropertySet("Errors"), session);
tp.m_request = &request;