From 513f83905e674e3d756078caefee4f9d72b3d03f Mon Sep 17 00:00:00 2001 From: helge Date: Thu, 8 Feb 2007 16:21:14 +0000 Subject: [PATCH] hotfix git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1408 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-appserver/NGObjWeb/WebDAV/SoWebDAVRenderer.m | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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; } -- 2.39.5