X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fbinding%2Fimpl%2FSAML2RedirectEncoder.cpp;h=82308f9e9d4118f376e1335e81840a3bba499a68;hp=c4806f280afbb3ca76cd092bbd32602b27925b58;hb=197bcbae7339bc779bc5780882d11fdeb45f8223;hpb=c63606f756dded4d28a12a987643e9daac6a311a diff --git a/saml/saml2/binding/impl/SAML2RedirectEncoder.cpp b/saml/saml2/binding/impl/SAML2RedirectEncoder.cpp index c4806f2..82308f9 100644 --- a/saml/saml2/binding/impl/SAML2RedirectEncoder.cpp +++ b/saml/saml2/binding/impl/SAML2RedirectEncoder.cpp @@ -24,7 +24,6 @@ #include "exceptions.h" #include "binding/HTTPResponse.h" #include "binding/MessageEncoder.h" -#include "binding/URLEncoder.h" #include "saml2/binding/SAML2Redirect.h" #include "saml2/core/Protocols.h" @@ -33,6 +32,7 @@ #include #include #include +#include using namespace opensaml::saml2p; using namespace opensaml; @@ -119,7 +119,7 @@ long SAML2RedirectEncoder::encode( throw BindingException("Base64 encoding of XML failed."); // Create beginnings of redirect query string. - URLEncoder* escaper = SAMLConfig::getConfig().getURLEncoder(); + const URLEncoder* escaper = XMLToolingConfig::getConfig().getURLEncoder(); xmlbuf.erase(); xmlbuf.append(reinterpret_cast(encoded),len); xmlbuf = (request ? "SAMLRequest=" : "SAMLResponse=") + escaper->encode(xmlbuf.c_str());