[cpp-sp] 01/02: Fix regression in REMOTE_USER handling.
Scott Cantor
cantor.2 at osu.edu
Wed May 23 17:37:44 EDT 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=6b7ce91826330546e81a105bf6b488eb281f5044
commit 6b7ce91826330546e81a105bf6b488eb281f5044
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed May 23 17:11:23 2018 -0400
Fix regression in REMOTE_USER handling.
---
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 a2f716c..c696e36 100644
--- a/isapi_shib/isapi_shib.cpp
+++ b/isapi_shib/isapi_shib.cpp
@@ -466,6 +466,7 @@ public:
void clearHeader(const char* rawname, const char* cginame) {
static char _ALL_HTTP[] = "ALL_HTTP";
static char _REMOTE_USER[] = "remote-user:";
+ static char _REMOTE_USER2[] = "remote_user:";
if (g_checkSpoofing && m_firsttime) {
if (m_allhttp.empty())
@@ -481,12 +482,12 @@ public:
m_pn->SetHeader(m_pfc, const_cast<char*>(hdr.c_str()), const_cast<char*>(g_unsetHeaderValue.c_str()));
}
else if (!strcmp(rawname,"REMOTE_USER")) {
- m_pn->SetHeader(m_pfc, _REMOTE_USER, const_cast<char*>(g_unsetHeaderValue.c_str()));
m_pn->SetHeader(m_pfc, _REMOTE_USER, const_cast<char*>(g_unsetHeaderValue.c_str()));
+ m_pn->SetHeader(m_pfc, _REMOTE_USER2, const_cast<char*>(g_unsetHeaderValue.c_str()));
}
else {
- string hdr = string(rawname) + ':';
- m_pn->SetHeader(m_pfc, const_cast<char*>(hdr.c_str()), const_cast<char*>(g_unsetHeaderValue.c_str()));
+ string hdr = string(rawname) + ':';
+ m_pn->SetHeader(m_pfc, const_cast<char*>(hdr.c_str()), const_cast<char*>(g_unsetHeaderValue.c_str()));
}
}
void setHeader(const char* name, const char* value) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list