]> err.no Git - sope/commitdiff
detect Sunbird UA
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 14 Nov 2006 12:28:23 +0000 (12:28 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 14 Nov 2006 12:28:23 +0000 (12:28 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1378 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-appserver/NGObjWeb/ChangeLog
sope-appserver/NGObjWeb/Version
sope-appserver/NGObjWeb/WEClientCapabilities.m

index 6a9d09eee55ac7b3d879cac819bbf8314bec5257..d833dda344b0924d9111b5a76d14f10245fd0f14 100644 (file)
@@ -1,3 +1,8 @@
+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
index 249bf6e02eb1bef0235c0a2339bf3c5356259fba..8d291ac6cd24de3b430d4f9a26ae57757d1f4995 100644 (file)
@@ -1,6 +1,10 @@
 # version file
 
+ifeq ($(GNUSTEP_HOST_VENDOR),apple) # linker overflow
 SUBMINOR_VERSION:=255
+else
+SUBMINOR_VERSION:=256
+endif
 
 # v4.5.234 requires libDOM          v4.5.21
 # v4.5.214 requires libNGExtensions v4.5.179
index b857c56436998ce41035691532f4d8945905e039..cdb6950bafd7bac5cab0b77709018b676ad8a2f3 100644 (file)
@@ -72,6 +72,7 @@
 #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: