mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-15 11:51:23 +00:00
Updated patch
This commit is contained in:
@@ -59,16 +59,15 @@
|
||||
{
|
||||
NSString *remoteUser;
|
||||
|
||||
if ([[SOGoSystemDefaults sharedSystemDefaults] trustProxyAuthentication])
|
||||
|
||||
/* If such a header is not provided by the proxy, SOPE will attempt to
|
||||
deduce it from the "Authorization" header. */
|
||||
remoteUser = [[context request] headerForKey: @"x-webobjects-remote-user"];
|
||||
|
||||
if ([remoteUser length] == 0 && [[SOGoSystemDefaults sharedSystemDefaults] trustProxyAuthentication])
|
||||
{
|
||||
remoteUser = @"anonymous";
|
||||
}
|
||||
else
|
||||
{
|
||||
/* If such a header is not provided by the proxy, SOPE will attempt to
|
||||
deduce it from the "Authorization" header. */
|
||||
remoteUser = [[context request] headerForKey: @"x-webobjects-remote-user"];
|
||||
}
|
||||
|
||||
return remoteUser;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user