X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fbinding%2Fimpl%2FSAML2POSTDecoder.cpp;h=90d0b63c5106d47fbfa8383068aae8c9ba715921;hp=5f763f5ba4c9eae89b0508a4bc307f09710cb434;hb=6056cca67278d65c4343928e4ceaebd1d6f04920;hpb=0559a5cb760882cbe43382dfacfd0a028ade1069 diff --git a/saml/saml2/binding/impl/SAML2POSTDecoder.cpp b/saml/saml2/binding/impl/SAML2POSTDecoder.cpp index 5f763f5..90d0b63 100644 --- a/saml/saml2/binding/impl/SAML2POSTDecoder.cpp +++ b/saml/saml2/binding/impl/SAML2POSTDecoder.cpp @@ -92,7 +92,7 @@ XMLObject* SAML2POSTDecoder::decode( XMLString::release(&decoded); // Parse and bind the document into an XMLObject. - DOMDocument* doc = (m_validate ? XMLToolingConfig::getConfig().getValidatingParser() + DOMDocument* doc = (policy.getValidating() ? XMLToolingConfig::getConfig().getValidatingParser() : XMLToolingConfig::getConfig().getParser()).parse(is); XercesJanitor janitor(doc); auto_ptr xmlObject(XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(), true)); @@ -111,7 +111,7 @@ XMLObject* SAML2POSTDecoder::decode( root = static_cast(request); } - if (!m_validate) + if (!policy.getValidating()) SchemaValidators.validate(xmlObject.get()); // Run through the policy.