[cpp-sp COMMIT] in /branches/REL_2/plugins: GSSAPIAttributeExtractor.cpp TemplateAttributeResolver.cpp TimeAccessCont...

noreply at shibboleth.net noreply at shibboleth.net
Mon Jan 19 17:29:26 EST 2015


Author: scantor
Date: Mon Jan 19 17:29:26 2015
New Revision: 3892

URL: http://svn.shibboleth.net/view/cpp-sp?rev=3892&view=rev
Log:
https://issues.shibboleth.net/jira/browse/SSPCPP-624

Modified:
    branches/REL_2/plugins/GSSAPIAttributeExtractor.cpp
    branches/REL_2/plugins/TemplateAttributeResolver.cpp
    branches/REL_2/plugins/TimeAccessControl.cpp

Modified: branches/REL_2/plugins/GSSAPIAttributeExtractor.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/plugins/GSSAPIAttributeExtractor.cpp?rev=3892&r1=3891&r2=3892&view=diff
==============================================================================
--- branches/REL_2/plugins/GSSAPIAttributeExtractor.cpp (original)
+++ branches/REL_2/plugins/GSSAPIAttributeExtractor.cpp Mon Jan 19 17:29:26 2015
@@ -206,6 +206,7 @@
         if (name && *name) {
             auto_ptr_char aliases(name);
             string dup(aliases.get());
+            trim(dup);
             set<string> new_aliases;
             split(new_aliases, dup, is_space(), algorithm::token_compress_on);
             set<string>::iterator ru = new_aliases.find("REMOTE_USER");

Modified: branches/REL_2/plugins/TemplateAttributeResolver.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/plugins/TemplateAttributeResolver.cpp?rev=3892&r1=3891&r2=3892&view=diff
==============================================================================
--- branches/REL_2/plugins/TemplateAttributeResolver.cpp (original)
+++ branches/REL_2/plugins/TemplateAttributeResolver.cpp Mon Jan 19 17:29:26 2015
@@ -150,6 +150,7 @@
         throw ConfigurationException("Template AttributeResolver requires dest attribute.");
 
     string s(XMLHelper::getAttrString(e, nullptr, _sources));
+    trim(s);
     split(m_sources, s, is_space(), algorithm::token_compress_on);
     if (m_sources.empty())
         throw ConfigurationException("Template AttributeResolver requires sources attribute.");

Modified: branches/REL_2/plugins/TimeAccessControl.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/plugins/TimeAccessControl.cpp?rev=3892&r1=3891&r2=3892&view=diff
==============================================================================
--- branches/REL_2/plugins/TimeAccessControl.cpp (original)
+++ branches/REL_2/plugins/TimeAccessControl.cpp Mon Jan 19 17:29:26 2015
@@ -114,6 +114,7 @@
     
     auto_ptr_char temp(e->getTextContent());
     string s(temp.get() ? temp.get() : "");
+    trim(s);
     vector<string> tokens;
     if (split(tokens, s, is_space(), algorithm::token_compress_on).size() != 2)
         throw ConfigurationException("Time-based rule requires element content of the form \"LT|LE|EQ|GE|GT value\".");



More information about the commits mailing list