[cpp-opensaml] branch master updated: Fix empty profile property handling.

Scott Cantor cantor.2 at osu.edu
Fri Feb 14 10:06:11 EST 2020


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-opensaml.git;a=commit;h=3ee8fc065d2582106ae289e2fb693dbbb79f250b

The following commit(s) were added to refs/heads/master by this push:
       new  3ee8fc0   Fix empty profile property handling.
3ee8fc0 is described below

commit 3ee8fc065d2582106ae289e2fb693dbbb79f250b
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Feb 14 10:05:57 2020 -0500

    Fix empty profile property handling.
---
 saml/binding/impl/SecurityPolicy.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/saml/binding/impl/SecurityPolicy.cpp b/saml/binding/impl/SecurityPolicy.cpp
index bf581bb..bec6e93 100644
--- a/saml/binding/impl/SecurityPolicy.cpp
+++ b/saml/binding/impl/SecurityPolicy.cpp
@@ -83,7 +83,9 @@ SecurityPolicyRule::SecurityPolicyRule(const DOMElement* e)
 {
     string profiles(XMLHelper::getAttrString(e, nullptr, profiles));
     trim(profiles);
-    split(m_profiles, profiles, is_space(), algorithm::token_compress_on);
+    if (!profiles.empty()) {
+        split(m_profiles, profiles, is_space(), algorithm::token_compress_on);
+    }
 }
 
 SecurityPolicyRule::~SecurityPolicyRule()

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list