X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fattribute%2Fresolver%2Fimpl%2FXMLAttributeExtractor.cpp;h=ffd910834e0fce2501ecbbd23c5d0edfc00bd121;hb=c51bfd77603cf0ddb0b5e374c35586a8435895d6;hp=807e798db805395c7ad143d03f013439cb3ab911;hpb=aae62532c348d7cb3893fd6bca296fe7396363a6;p=shibboleth%2Fcpp-sp.git diff --git a/shibsp/attribute/resolver/impl/XMLAttributeExtractor.cpp b/shibsp/attribute/resolver/impl/XMLAttributeExtractor.cpp index 807e798..ffd9108 100644 --- a/shibsp/attribute/resolver/impl/XMLAttributeExtractor.cpp +++ b/shibsp/attribute/resolver/impl/XMLAttributeExtractor.cpp @@ -142,7 +142,7 @@ namespace shibsp { class XMLExtractor : public AttributeExtractor, public ReloadableXMLFile { public: - XMLExtractor(const DOMElement* e) : ReloadableXMLFile(e, Category::getInstance(SHIBSP_LOGCAT".AttributeExtractor.XML")) { + XMLExtractor(const DOMElement* e) : ReloadableXMLFile(e, Category::getInstance(SHIBSP_LOGCAT ".AttributeExtractor.XML")) { if (m_local && m_lock) m_log.warn("attribute mappings are reloadable; be sure to restart web server when adding new attribute IDs"); background_load(); @@ -348,6 +348,7 @@ XMLExtractorImpl::XMLExtractorImpl(const DOMElement* e, Category& log) m_log.warn("attribute mapping rule (%s) uses deprecated aliases feature, consider revising", id.get()); auto_ptr_char aliases(name); string dup(aliases.get()); + trim(dup); set new_aliases; split(new_aliases, dup, is_space(), algorithm::token_compress_on); set::iterator ru = new_aliases.find("REMOTE_USER");