projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f32bf71
)
Fix for jsessionid bug.
author
Scott Cantor
<cantor.2@osu.edu>
Tue, 30 Oct 2007 18:22:25 +0000
(18:22 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Tue, 30 Oct 2007 18:22:25 +0000
(18:22 +0000)
shib-target/shib-target.cpp
patch
|
blob
|
history
diff --git
a/shib-target/shib-target.cpp
b/shib-target/shib-target.cpp
index
340c390
..
364836d
100644
(file)
--- 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);
}