[shibboleth-sp2] 100/119: Fix for jsessionid bug.
Ferenc Wágner
wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
wferi-guest pushed a commit to annotated tag 1.3.1
in repository shibboleth-sp2.
commit 6b9d34da44c9e6b6ec94bad490979eea9e63e5fc
Author: Scott Cantor <cantor.2 at osu.edu>
Date: Tue Oct 30 18:22:25 2007 +0000
Fix for jsessionid bug.
---
shib-target/shib-target.cpp | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/shib-target/shib-target.cpp b/shib-target/shib-target.cpp
index 340c390..364836d 100644
--- a/shib-target/shib-target.cpp
+++ b/shib-target/shib-target.cpp
@@ -146,6 +146,17 @@ void ShibTarget::init(
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;
}
@@ -159,7 +170,7 @@ void ShibTarget::init(
++uri;
}
}
-
+
m_priv->m_Config = &ShibTargetConfig::getConfig();
m_priv->get_application(this, protocol, hostname, port, m_uri);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git
More information about the Pkg-shibboleth-devel
mailing list