https://issues.shibboleth.net/jira/browse/SSPCPP-133
authorScott Cantor <cantor.2@osu.edu>
Mon, 18 Aug 2008 15:04:08 +0000 (15:04 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 18 Aug 2008 15:04:08 +0000 (15:04 +0000)
shibsp/handler/impl/AbstractHandler.cpp

index cd9039c..3f298df 100644 (file)
@@ -402,13 +402,9 @@ void AbstractHandler::recoverRelayState(
         relayState.erase();
     }
 
-    // Check for "default" value.
-    if (relayState.empty() || relayState == "default") {
+    // Check for "default" value (or the old "cookie" value that might come from stale bookmarks).
+    if (relayState.empty() || relayState == "default" || relayState == "cookie") {
         pair<bool,const char*> homeURL=application.getString("homeURL");
         relayState=homeURL.first ? homeURL.second : "/";
-        return;
     }
-
-    if (relayState == "default")
-        relayState.empty();
 }