[shibboleth-sp2] 88/100: Fixed broken scheme computation in extension
Ferenc Wágner
wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:20 UTC 2016
This is an automated email from the git hooks/post-receive script.
wferi-guest pushed a commit to annotated tag 1.2.1
in repository shibboleth-sp2.
commit 17717d16d4533f0eae306a15c499072f9949c641
Author: Scott Cantor <cantor.2 at osu.edu>
Date: Wed Oct 27 20:35:40 2004 +0000
Fixed broken scheme computation in extension
---
isapi_shib/isapi_shib.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/isapi_shib/isapi_shib.cpp b/isapi_shib/isapi_shib.cpp
index 4ceb1ce..e75f578 100644
--- a/isapi_shib/isapi_shib.cpp
+++ b/isapi_shib/isapi_shib.cpp
@@ -765,7 +765,7 @@ IRequestMapper::Settings map_request(
{
dynabuf ssl(5);
GetServerVariable(lpECB,"HTTPS",ssl,5);
- bool SSL=(ssl=="on");
+ bool SSL=(ssl=="on" || ssl=="ON");
// URL path always come from IIS.
dynabuf url(256);
@@ -782,8 +782,9 @@ IRequestMapper::Settings map_request(
// Scheme may come from site def or be derived from IIS.
const char* scheme=site.m_scheme.c_str();
- if (!scheme || !*scheme || !g_bNormalizeRequest)
- scheme=lpECB->lpszMethod;
+ if (!scheme || !*scheme || !g_bNormalizeRequest) {
+ scheme = SSL ? "https" : "http";
+ }
// Start with scheme and hostname.
if (g_bNormalizeRequest) {
--
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