+2006-11-14 Helge Hess <helge.hess@opengroupware.org>
+
+ * WEClientCapabilities.m: added Sunbird as a known user-agent
+ (v4.5.256)
+
2006-11-08 Helge Hess <helge.hess@opengroupware.org>
* DynamicElements/WOCopyValue.m: fixed an uninitialized local
#define WEUA_PerlHTTPDAV 41
#define WEUA_Google 42
#define WEUA_WebDrive 43
+#define WEUA_Sunbird 44
#define WEOS_UNKNOWN 0
#define WEOS_WINDOWS 1
self->browserMajorVersion = combinedVersion / 100;
}
}
+ else if ((tmp = strstr(ua, "Sunbird/"))) {
+ /* Sunbird says it is a Mozilla */
+ self->browser = WEUA_Sunbird;
+ tmp += 8; /* skip "Sunbird/" */
+
+ self->browserMajorVersion = atoi(tmp);
+ if ((tmp = index(tmp, '.'))) {
+ tmp++;
+ self->browserMinorVersion = atoi(tmp);
+ }
+ }
else if (strstr(ua, "Outlook-Express/")) {
/* Outlook Express 5.5 mailbox access via http */
self->browser = WEUA_MSOutlookExpress;
case WEUA_PerlHTTPDAV: return @"PerlHTTPDAV";
case WEUA_Google: return @"Google";
case WEUA_WebDrive: return @"WebDrive";
+ case WEUA_Sunbird: return @"Sunbird";
default: return @"unknown";
}
}
if (self->browser == WEUA_Goliath) return YES;
if (self->browser == WEUA_PerlHTTPDAV) return YES;
if (self->browser == WEUA_WebDrive) return YES;
+ if (self->browser == WEUA_Sunbird) return YES;
return NO;
}
case WEUA_Evolution:
case WEUA_SOUP:
case WEUA_Morgul:
+ case WEUA_Sunbird:
/* browser so new, that they always supported UTF-8 ... */
return YES;
case WEUA_IE: