From: scantor Date: Sat, 5 Feb 2011 19:23:57 +0000 (+0000) Subject: https://bugs.internet2.edu/jira/browse/SSPCPP-348 X-Git-Tag: 2.4.2~3 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=24878d750c0a9f5fad9fe2980ff40e1f0004497c https://bugs.internet2.edu/jira/browse/SSPCPP-348 git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3401 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/shibsp/impl/XMLServiceProvider.cpp b/shibsp/impl/XMLServiceProvider.cpp index 1dfc15d..351ccab 100644 --- a/shibsp/impl/XMLServiceProvider.cpp +++ b/shibsp/impl/XMLServiceProvider.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2010 Internet2 + * Copyright 2001-2011 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1018,8 +1018,7 @@ void XMLApplication::doSSO(const ProtocolProvider& pp, set& protocols, D SPConfig& conf = SPConfig::getConfig(); // Tokenize the protocol list inside the element. - const XMLCh* protlist = e->getFirstChild()->getNodeValue(); - XMLStringTokenizer prottokens(protlist); + XMLStringTokenizer prottokens(e->getTextContent()); while (prottokens.hasMoreTokens()) { auto_ptr_char prot(prottokens.nextToken()); @@ -1138,8 +1137,7 @@ void XMLApplication::doLogout(const ProtocolProvider& pp, set& protocols SPConfig& conf = SPConfig::getConfig(); // Tokenize the protocol list inside the element. - const XMLCh* protlist = e->getFirstChild()->getNodeValue(); - XMLStringTokenizer prottokens(protlist); + XMLStringTokenizer prottokens(e->getTextContent()); while (prottokens.hasMoreTokens()) { auto_ptr_char prot(prottokens.nextToken()); @@ -1227,8 +1225,7 @@ void XMLApplication::doNameIDMgmt(const ProtocolProvider& pp, set& proto SPConfig& conf = SPConfig::getConfig(); // Tokenize the protocol list inside the element. - const XMLCh* protlist = e->getFirstChild()->getNodeValue(); - XMLStringTokenizer prottokens(protlist); + XMLStringTokenizer prottokens(e->getTextContent()); while (prottokens.hasMoreTokens()) { auto_ptr_char prot(prottokens.nextToken());