-// $Id: Application.m,v 1.1 2004/06/08 11:08:07 helge Exp $
+/*
+ Copyright (C) 2000-2005 SKYRIX Software AG
+
+ This file is part of SOPE.
+
+ SOPE is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with SOPE; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
#include <NGObjWeb/WOApplication.h>
-# $Id: GNUmakefile,v 1.1 2004/06/08 11:08:07 helge Exp $
+# GNUstep makefile
include $(GNUSTEP_MAKEFILES)/common.make
-// $Id: Main.m,v 1.1 2004/06/08 11:08:07 helge Exp $
+/*
+ Copyright (C) 2000-2005 SKYRIX Software AG
+
+ This file is part of SOPE.
+
+ SOPE is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with SOPE; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
#include <NGObjWeb/WOComponent.h>
-// $Id: NSString+BasicAuth.h,v 1.1 2004/06/08 11:08:07 helge Exp $
+/*
+ Copyright (C) 2000-2005 SKYRIX Software AG
+
+ This file is part of SOPE.
+
+ SOPE is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with SOPE; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
#ifndef __NSString_BasicAuth_H__
#define __NSString_BasicAuth_H__
-// $Id: NSString+BasicAuth.m,v 1.1 2004/06/08 11:08:07 helge Exp $
+/*
+ Copyright (C) 2000-2005 SKYRIX Software AG
+
+ This file is part of SOPE.
+
+ SOPE is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with SOPE; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
#include "NSString+BasicAuth.h"
#include <NGExtensions/NGBase64Coding.h>
- (NSString *)loginOfHTTPBasicAuthorizationValue {
NSString *s;
- unsigned idx;
+ NSRange r;
if ((s = [self decodedHTTPBasicAuthorizationValue]) == nil)
return nil;
- if ((idx = [s indexOfString:@":"]) == NSNotFound)
+ if ((r = [s rangeOfString:@":"]).length == 0)
return nil;
- return [s substringToIndex:idx];
+ return [s substringToIndex:r.location];
}
- (NSString *)passwordOfHTTPBasicAuthorizationValue {
NSString *s;
- unsigned idx;
+ NSRange r;
if ((s = [self decodedHTTPBasicAuthorizationValue]) == nil)
return nil;
- if ((idx = [s indexOfString:@":"]) == NSNotFound)
+ if ((r = [s rangeOfString:@":"]).length == 0)
return nil;
- return [s substringFromIndex:(idx + 1)];
+ return [s substringFromIndex:(r.location + r.length)];
}
@end /* NSString(BasicAuth) */
-// $Id: common.h,v 1.1 2004/06/08 11:08:07 helge Exp $
+/*
+ Copyright (C) 2000-2005 SKYRIX Software AG
+
+ This file is part of SOPE.
+
+ SOPE is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with SOPE; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
#import <Foundation/Foundation.h>
+2006-04-02 Philippe Laval <philippe.laval@free.fr>
+
+ * BasicAuthSession/NSString+BasicAuth.m: replaced usage of non-Cocoa
+ -indexOfString: with -rangeOfString:
+
2004-02-29 Helge Hess <helge.hess@opengroupware.org>
* added the HelloWorld application example - the simplest application