[cpp-sp COMMIT] /branches/REL_2/shibsp/handler/impl/AssertionConsumerService.cpp

noreply at shibboleth.net noreply at shibboleth.net
Wed Nov 28 20:55:48 EST 2012


Author: scantor
Date: Wed Nov 28 20:55:48 2012
New Revision: 3823

URL: http://svn.shibboleth.net/view/cpp-sp?rev=3823&view=rev
Log:
Add relay state to exception only if non-empty

Modified:
    branches/REL_2/shibsp/handler/impl/AssertionConsumerService.cpp

Modified: branches/REL_2/shibsp/handler/impl/AssertionConsumerService.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/handler/impl/AssertionConsumerService.cpp?rev=3823&r1=3822&r2=3823&view=diff
==============================================================================
--- branches/REL_2/shibsp/handler/impl/AssertionConsumerService.cpp (original)
+++ branches/REL_2/shibsp/handler/impl/AssertionConsumerService.cpp Wed Nov 28 20:55:48 2012
@@ -251,8 +251,10 @@
                 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 {



More information about the commits mailing list