From: Scott Cantor Date: Sat, 5 Feb 2011 19:23:57 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-348 X-Git-Tag: 2.4.2~4 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=commitdiff_plain;h=03c0a04c459166a70f0ff9ed0f2800418b658a83 https://issues.shibboleth.net/jira/browse/SSPCPP-348 --- 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());