From: scantor Date: Thu, 29 Nov 2012 01:55:48 +0000 (+0000) Subject: Add relay state to exception only if non-empty X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=9a11630985691a92c67a7996f2db0ddc7a15fc84 Add relay state to exception only if non-empty git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3823 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/shibsp/handler/impl/AssertionConsumerService.cpp b/shibsp/handler/impl/AssertionConsumerService.cpp index 901d826..881e887 100644 --- a/shibsp/handler/impl/AssertionConsumerService.cpp +++ b/shibsp/handler/impl/AssertionConsumerService.cpp @@ -251,8 +251,10 @@ pair AssertionConsumerService::processMessage( return make_pair(true, httpResponse.sendRedirect(relayState.c_str())); } } - - ex.addProperty("RelayState", relayState.c_str()); + + if (!relayState.empty()) { + ex.addProperty("RelayState", relayState.c_str()); + } // Log the error. try {