From: wolfgang Date: Sat, 3 May 2008 08:06:21 +0000 (+0000) Subject: git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1405 d1b88da0-ebda-0310... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b3e4dfbc6c1486b5df0799ae58ce2fed6ed110b;p=scalable-opengroupware.org git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1405 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOPE/sope-patchset-r1620.diff b/SOPE/sope-patchset-r1620.diff index b7416d02..10b215d2 100644 --- a/SOPE/sope-patchset-r1620.diff +++ b/SOPE/sope-patchset-r1620.diff @@ -1850,6 +1850,29 @@ Index: sope-appserver/NGObjWeb/WebDAV/SaxDAVHandler.m break; case 'n': +Index: sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m +=================================================================== +--- sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m (révision 1620) ++++ sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m (copie de travail) +@@ -1523,14 +1523,16 @@ + - (id)doREPORT:(WOContext *)_ctx { + id domDocument; + WORequest *rq; +- NSString *mname; ++ NSString *mname, *ctype; + id method, resultObject; + + rq = [_ctx request]; + + /* ensure XML */ + +- if (![[rq headerForKey:@"content-type"] hasPrefix:@"text/xml"]) { ++ ctype = [rq headerForKey:@"content-type"]; ++ if (!([ctype hasPrefix:@"text/xml"] ++ || [ctype hasPrefix:@"application/xml"])) { + return [self httpException:400 /* invalid request */ + reason:@"XML entity expected for WebDAV REPORT."]; + } Index: sope-appserver/NGObjWeb/DynamicElements/WOHyperlinkInfo.m =================================================================== --- sope-appserver/NGObjWeb/DynamicElements/WOHyperlinkInfo.m (révision 1620)