https://bugs.internet2.edu/jira/browse/SSPCPP-351
[shibboleth/sp.git] / shibsp / handler / impl / LocalLogoutInitiator.cpp
index 5468df9..8a74dc3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2009 Internet2
+ *  Copyright 2001-2011 Internet2
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -105,7 +105,9 @@ pair<bool,long> LocalLogoutInitiator::run(SPRequest& request, bool isHandler) co
 
     // Route back to return location specified, or use the local template.
     const char* dest = request.getParameter("return");
-    if (dest)
+    if (dest) {
+        limitRelayState(m_log, app, request, dest);
         return make_pair(true, request.sendRedirect(dest));
+    }
     return sendLogoutPage(app, request, request, "local");
 }