X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml1%2Fbinding%2Fimpl%2FSAML1ArtifactEncoder.cpp;h=8531df2f80a6839336e3b20081cb96416c33b11a;hp=01b79a5fd20a3cf4b363438cdef2fb250dcf158b;hb=197bcbae7339bc779bc5780882d11fdeb45f8223;hpb=c63606f756dded4d28a12a987643e9daac6a311a diff --git a/saml/saml1/binding/impl/SAML1ArtifactEncoder.cpp b/saml/saml1/binding/impl/SAML1ArtifactEncoder.cpp index 01b79a5..8531df2 100644 --- a/saml/saml1/binding/impl/SAML1ArtifactEncoder.cpp +++ b/saml/saml1/binding/impl/SAML1ArtifactEncoder.cpp @@ -26,12 +26,13 @@ #include "binding/HTTPResponse.h" #include "binding/MessageEncoder.h" #include "binding/SAMLArtifact.h" -#include "binding/URLEncoder.h" #include "saml1/core/Assertions.h" #include "saml1/core/Protocols.h" #include +#include #include +#include using namespace opensaml::saml1; using namespace opensaml::saml1p; @@ -113,7 +114,7 @@ long SAML1ArtifactEncoder::encode( // Generate redirect. string loc = destination; loc += (strchr(destination,'?') ? '&' : '?'); - URLEncoder* escaper = SAMLConfig::getConfig().getURLEncoder(); + const URLEncoder* escaper = XMLToolingConfig::getConfig().getURLEncoder(); loc = loc + "SAMLart=" + escaper->encode(artifact->encode().c_str()) + "&TARGET=" + escaper->encode(relayState); log.debug("message encoded, sending redirect to client"); return httpResponse->sendRedirect(loc.c_str());