From: helge Date: Thu, 8 Feb 2007 16:21:14 +0000 (+0000) Subject: hotfix X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=513f83905e674e3d756078caefee4f9d72b3d03f;p=sope hotfix git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1408 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-appserver/NGObjWeb/WebDAV/SoWebDAVRenderer.m b/sope-appserver/NGObjWeb/WebDAV/SoWebDAVRenderer.m index a2f6459f..6f61841e 100644 --- a/sope-appserver/NGObjWeb/WebDAV/SoWebDAVRenderer.m +++ b/sope-appserver/NGObjWeb/WebDAV/SoWebDAVRenderer.m @@ -327,7 +327,7 @@ static BOOL formatOutput = NO; { NSString *davNS; - davNS = [_prefixes objectForKey:XMLNS_WEBDAV]; + davNS = [[_prefixes objectForKey:XMLNS_WEBDAV] stringValue]; if ([_value isKindOfClass:[NSArray class]]) { /* @@ -356,7 +356,17 @@ static BOOL formatOutput = NO; if (![item isKindOfClass:[NSArray class]]) { item = [item stringValue]; if (![item isNotEmpty]) continue; - [ms appendFormat:@"<%@:%@ />", davNS, item]; + + if (_requireTagValue) { + [ms appendString:@"<"]; + [ms appendString:davNS]; + [ms appendString:@":"]; + [ms appendString:item]; + [ms appendString:@" />"]; + } + else + [ms appendString:[item stringByEscapingXMLString]]; + continue; }