]> err.no Git - scalable-opengroupware.org/commitdiff
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1405 d1b88da0-ebda-0310...
authorwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Sat, 3 May 2008 08:06:21 +0000 (08:06 +0000)
committerwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Sat, 3 May 2008 08:06:21 +0000 (08:06 +0000)
SOPE/sope-patchset-r1620.diff

index b7416d028bcd0fc423b47867ba0d0fdf381527d1..10b215d2f2e56932f3ecb42151e0b5c780688cc4 100644 (file)
@@ -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> 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)