+2007-09-14 Helge Hess <helge.hess@opengroupware.org>
+
+ * SoObjects/SoHTTPAuthenticator.m, SoCookieAuthenticator.m: be more
+ tolerant about the formatting of 'basic' auth credentials (wrt OGo
+ bug #1911) (v4.7.15)
+
2007-08-29 Helge Hess <helge.hess@opengroupware.org>
* WEClientCapabilities.m: added CookComputing XML-RPC.NET as a known
- user-agent (fixes OGo buf #1910) (v4.7.14)
+ user-agent (fixes OGo bug #1910) (v4.7.14)
2007-06-29 Adam Williams <awilliam@whitemice.org>
/*
- Copyright (C) 2006 Helge Hess
+ Copyright (C) 2006-2007 Helge Hess
This file is part of SOPE.
#include <NGObjWeb/WORequest.h>
#include <NGObjWeb/WOResponse.h>
#include <NGObjWeb/WOContext.h>
-#include <NGObjWeb/WOCookie.h>
#include <NGExtensions/NSString+Ext.h>
#include "common.h"
inContext:_ctx];
}
- k = [auth substringFromIndex:6];
+ /*
+ Should be 'basic ' (basic + space), but lets be tolerant and allow an
+ arbitary amount of leading spaces.
+ */
+ k = [[auth substringFromIndex:5] stringByTrimmingLeadWhiteSpaces];
if ((k = [k stringByDecodingBase64]) == nil) {
[self logWithFormat:@"tried unknown authentication method: %@ (C)", auth];
return [self unauthorized:@"unsupported authentication method"
/*
- Copyright (C)
- 2002-2006 SKYRIX Software AG
- 2006 Helge Hess
+ Copyright (C) 2002-2007 SKYRIX Software AG
+ Copyright (C) 2006-2007 Helge Hess
This file is part of SOPE.
return nil;
}
- k = [_creds substringFromIndex:6];
+ /*
+ Should be 'basic ' (basic + space), but lets be tolerant and allow an
+ arbitary amount of leading spaces.
+ */
+ k = [[_creds substringFromIndex:5] stringByTrimmingLeadWhiteSpaces];
k = [k stringByDecodingBase64];
if (k == nil) return nil;
inContext:_ctx];
}
- k = [auth substringFromIndex:6];
+ /*
+ Should be 'basic ' (basic + space), but lets be tolerant and allow an
+ arbitary amount of leading spaces.
+ */
+ k = [[auth substringFromIndex:5] stringByTrimmingLeadWhiteSpaces];
if ((k = [k stringByDecodingBase64]) == nil) {
[self logWithFormat:@"tried unknown authentication method: %@ (C)", auth];
return [self unauthorized:@"unsupported authentication method"
# version file
-SUBMINOR_VERSION:=14
+SUBMINOR_VERSION:=15
# v4.7.11 requires libNGExtensions v4.7.194
# v4.5.234 requires libDOM v4.5.21