From 280996ec9300259f031b4091fbf4c58dcb6105b5 Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 29 Aug 2007 20:53:46 +0000 Subject: [PATCH] fixed #1882, PHP PEAR git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1529 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-appserver/NGObjWeb/ChangeLog | 5 +++++ sope-appserver/NGObjWeb/Version | 2 +- sope-appserver/NGObjWeb/WEClientCapabilities.m | 13 +++++++++++-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/sope-appserver/NGObjWeb/ChangeLog b/sope-appserver/NGObjWeb/ChangeLog index 9a50c026..3a510108 100644 --- a/sope-appserver/NGObjWeb/ChangeLog +++ b/sope-appserver/NGObjWeb/ChangeLog @@ -1,3 +1,8 @@ +2007-06-29 Adam Williams + + * WEClientCapabilities.m: added PHP PEAR as a known user-agent (fixes + OGo bug #1882) (v4.7.13) + 2007-07-19 Marcus Mueller * v4.7.12 diff --git a/sope-appserver/NGObjWeb/Version b/sope-appserver/NGObjWeb/Version index 02fdb2ed..2738eecc 100644 --- a/sope-appserver/NGObjWeb/Version +++ b/sope-appserver/NGObjWeb/Version @@ -1,6 +1,6 @@ # version file -SUBMINOR_VERSION:=12 +SUBMINOR_VERSION:=13 # v4.7.11 requires libNGExtensions v4.7.194 # v4.5.234 requires libDOM v4.5.21 diff --git a/sope-appserver/NGObjWeb/WEClientCapabilities.m b/sope-appserver/NGObjWeb/WEClientCapabilities.m index 13659033..3029be5d 100644 --- a/sope-appserver/NGObjWeb/WEClientCapabilities.m +++ b/sope-appserver/NGObjWeb/WEClientCapabilities.m @@ -1,6 +1,6 @@ /* - Copyright (C) 2000-2006 SKYRIX Software AG - Copyright (C) 2006 Helge Hess + Copyright (C) 2000-2007 SKYRIX Software AG + Copyright (C) 2006-2007 Helge Hess This file is part of SOPE. @@ -73,6 +73,7 @@ #define WEUA_Google 42 #define WEUA_WebDrive 43 #define WEUA_Sunbird 44 +#define WEUA_PEAR_XMLRPC 45 #define WEOS_UNKNOWN 0 #define WEOS_WINDOWS 1 @@ -374,6 +375,9 @@ else if (strstr(ua, "Mediapartners-Google/")) { self->browser = WEUA_Google; } + else if (strstr(ua, "PEAR XML_RPC")) { + self->browser = WEUA_PEAR_XMLRPC; + } else { /* unknown browser */ self->browser = WEUA_UNKNOWN; @@ -469,6 +473,7 @@ case WEUA_Google: return @"Google"; case WEUA_WebDrive: return @"WebDrive"; case WEUA_Sunbird: return @"Sunbird"; + case WEUA_PEAR_XMLRPC: return @"PHP PEAR XMLRPC"; default: return @"unknown"; } } @@ -636,6 +641,7 @@ if (self->browser == WEUA_xmlrpclib_py) return YES; if (self->browser == WEUA_KungLog) return YES; if (self->browser == WEUA_Ecto) return YES; + if (self->browser == WEUA_PEAR_XMLRPC) return YES; return NO; } - (BOOL)isBLogClient { @@ -746,6 +752,9 @@ - (BOOL)isKonqueror { return self->browser == WEUA_Konqueror ? YES : NO; } +- (BOOL)isPHP { + return self-browser == WEUA_PEAR_XMLRPC ? YES : NO; +} /* OS */ -- 2.39.5