[shibboleth-sp2] 15/119: Change rule token delimiter to space. Still need to add escaping.

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:45 UTC 2016


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

wferi-guest pushed a commit to annotated tag 1.3.1
in repository shibboleth-sp2.

commit 64de4acc11798681b225bfe6189b8d11b0d6a070
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Tue Mar 13 16:40:11 2007 +0000

    Change rule token delimiter to space. Still need to add escaping.
---
 xmlproviders/XMLAccessControl.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/xmlproviders/XMLAccessControl.cpp b/xmlproviders/XMLAccessControl.cpp
index a30d89d..4234fe6 100644
--- a/xmlproviders/XMLAccessControl.cpp
+++ b/xmlproviders/XMLAccessControl.cpp
@@ -107,16 +107,16 @@ Rule::Rule(const DOMElement* e)
     auto_ptr_char vals(e->hasChildNodes() ? e->getFirstChild()->getNodeValue() : NULL);
 #ifdef HAVE_STRTOK_R
     char* pos=NULL;
-    const char* token=strtok_r(const_cast<char*>(vals.get()),"/",&pos);
+    const char* token=strtok_r(const_cast<char*>(vals.get())," ",&pos);
 #else
-    const char* token=strtok(const_cast<char*>(vals.get()),"/");
+    const char* token=strtok(const_cast<char*>(vals.get())," ");
 #endif
     while (token) {
         m_vals.push_back(token);
 #ifdef HAVE_STRTOK_R
-        token=strtok_r(NULL,"/",&pos);
+        token=strtok_r(NULL," ",&pos);
 #else
-        token=strtok(NULL,"/");
+        token=strtok(NULL," ");
 #endif
     }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list