/*
- Copyright (C) 2000-2007 SKYRIX Software AG
- Copyright (C) 2006-2007 Helge Hess
+ Copyright (C) 2000-2008 SKYRIX Software AG
+ Copyright (C) 2006-2008 Helge Hess
This file is part of SOPE.
#define WEUA_PEAR_XMLRPC 45
#define WEUA_Cook_XMLRPCdotNET 46
#define WEUA_WDFS 47
+#define WEUA_ZideOne_Outlook 48
#define WEOS_UNKNOWN 0
#define WEOS_WINDOWS 1
/* process user-agent */
self->userAgent = [[_request headerForKey:@"user-agent"] copy];
+#if LIB_FOUNDATION_LIBRARY
ua = [self->userAgent cString];
+#else
+ ua = [self->userAgent UTF8String];
+#endif
if (ua == NULL) {
/* no user-agent, eg telnet */
ua = "";
self->browserMinorVersion = 0;
self->browserMajorVersion = 0;
}
+ else if (strstr(ua, "ZideOne/") != NULL) {
+ self->browser = WEUA_ZideOne_Outlook;
+ self->browserMinorVersion = 0;
+ self->browserMajorVersion = 0;
+ }
else if ((tmp = strstr(ua, "Safari/"))) {
/* Hm, Safari says it is a Mozilla/5.0 ? */
int combinedVersion;
case WEUA_PEAR_XMLRPC: return @"PHP PEAR XMLRPC";
case WEUA_Cook_XMLRPCdotNET: return @"PHP PEAR XMLRPC";
case WEUA_WDFS: return @"WDFS";
+ case WEUA_ZideOne_Outlook: return @"ZideOne";
default: return @"unknown";
}
}
if (self->browser == WEUA_WebDrive) return YES;
if (self->browser == WEUA_Sunbird) return YES;
if (self->browser == WEUA_WDFS) return YES;
+ if (self->browser == WEUA_ZideOne_Outlook) return YES;
return NO;
}
case WEUA_SOUP:
case WEUA_Morgul:
case WEUA_Sunbird:
+ case WEUA_ZideOne_Outlook:
/* browser so new, that they always supported UTF-8 ... */
return YES;
case WEUA_IE: