From: Scott Cantor Date: Wed, 12 Aug 2009 17:21:19 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-44 X-Git-Tag: 2.2.1~3 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=commitdiff_plain;h=00624ba87e3c67323b4077e201a9cbdc67a7c9b2 https://issues.shibboleth.net/jira/browse/SSPCPP-44 --- diff --git a/shibsp/AbstractSPRequest.cpp b/shibsp/AbstractSPRequest.cpp index 02cc8e6..c18d826 100644 --- a/shibsp/AbstractSPRequest.cpp +++ b/shibsp/AbstractSPRequest.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. @@ -132,17 +132,6 @@ void AbstractSPRequest::setRequestURI(const char* uri) m_uri += uri; break; } - else if (*uri == ';') { - // If this is Java being stupid, skip everything up to the query string, if any. - if (!strncmp(uri, ";jsessionid=", 12)) { - if (uri = strchr(uri, '?')) - m_uri += uri; - break; - } - else { - m_uri += *uri; - } - } else if (*uri != '%') { m_uri += *uri; } diff --git a/shibsp/handler/impl/StatusHandler.cpp b/shibsp/handler/impl/StatusHandler.cpp index 5886a91..b9e066d 100644 --- a/shibsp/handler/impl/StatusHandler.cpp +++ b/shibsp/handler/impl/StatusHandler.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. @@ -151,17 +151,6 @@ namespace shibsp { m_uri += slash; break; } - else if (*slash == ';') { - // If this is Java being stupid, skip everything up to the query string, if any. - if (!strncmp(slash, ";jsessionid=", 12)) { - if (slash = strchr(slash, '?')) - m_uri += slash; - break; - } - else { - m_uri += *slash; - } - } else if (*slash != '%') { m_uri += *slash; } diff --git a/shibsp/impl/XMLServiceProvider.cpp b/shibsp/impl/XMLServiceProvider.cpp index 09e3280..5b9de5f 100644 --- a/shibsp/impl/XMLServiceProvider.cpp +++ b/shibsp/impl/XMLServiceProvider.cpp @@ -1164,6 +1164,7 @@ const vector& XMLApplication::getAssertionConsumerServicesByBind const Handler* XMLApplication::getHandler(const char* path) const { string wrap(path); + wrap = wrap.substr(0,wrap.find(';')); map::const_iterator i=m_handlerMap.find(wrap.substr(0,wrap.find('?'))); if (i!=m_handlerMap.end()) return i->second;