X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fhandler%2Fimpl%2FWAYFSessionInitiator.cpp;h=af9b71a8b98bb9909940ce66606525d5007d7847;hb=3acaee30e3769e67c6c60ba8efe92f740a837509;hp=dd67a28abb9f522f74d1544d83f7f8ecd518d3a1;hpb=b2b8877ecdbe6aa533a4fab2823fc974ed35337b;p=shibboleth%2Fcpp-sp.git diff --git a/shibsp/handler/impl/WAYFSessionInitiator.cpp b/shibsp/handler/impl/WAYFSessionInitiator.cpp index dd67a28..af9b71a 100644 --- a/shibsp/handler/impl/WAYFSessionInitiator.cpp +++ b/shibsp/handler/impl/WAYFSessionInitiator.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2007 Internet2 + * Copyright 2001-2009 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -131,8 +131,8 @@ pair WAYFSessionInitiator::run(SPRequest& request, string& entityID, target = option; } preserveRelayState(request.getApplication(), request, target); - postData = getPostData(request); - preservePostData(request.getApplication(), request, postData, target); + if (!isHandler) + preservePostData(request.getApplication(), request, request, target.c_str()); // WAYF requires a target value. if (target.empty())