From 97c6a1aafa244da0c8070cc6df8190a216bba4f0 Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 13 Dec 2006 12:28:11 +0000 Subject: [PATCH] applied a hotfix for the last change git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1390 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-appserver/NGObjWeb/Templates/WOHTMLParser.m | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/sope-appserver/NGObjWeb/Templates/WOHTMLParser.m b/sope-appserver/NGObjWeb/Templates/WOHTMLParser.m index 201b55c0..63271623 100644 --- a/sope-appserver/NGObjWeb/Templates/WOHTMLParser.m +++ b/sope-appserver/NGObjWeb/Templates/WOHTMLParser.m @@ -1,5 +1,6 @@ /* - Copyright (C) 2000-2005 SKYRIX Software AG + Copyright (C) 2000-2006 SKYRIX Software AG + Copyright (C) 2006 Helge Hess This file is part of SOPE. @@ -445,6 +446,7 @@ static NSString *_parseStringValue(NSZone *_zone, static NSMutableDictionary * _parseTagAttributes(NSZone *_zone, const unichar *_buffer, + BOOL _uppercaseName, unsigned *_idx, unsigned _len, NSException **_exception, WOHTMLParser *self); @@ -496,7 +498,9 @@ static WOElement *_parseHashElement(NSZone *_zone, const unichar *_buffer, /* parse attributes */ - attrs = _parseTagAttributes(_zone, _buffer, _idx, _len, _exc, self); + attrs = _parseTagAttributes(_zone, _buffer, + NO /* keep name attributes as-is */, + _idx, _len, _exc, self); if (_exc != NULL) { if (*_exc != nil) { [name release]; name = nil; @@ -617,6 +621,7 @@ static WOElement *_parseHashElement(NSZone *_zone, const unichar *_buffer, static NSMutableDictionary * _parseTagAttributes(NSZone *_zone, const unichar *_buffer, + BOOL _uppercaseName, unsigned *_idx, unsigned _len, NSException **_exception, WOHTMLParser *self) { @@ -643,7 +648,7 @@ _parseTagAttributes(NSZone *_zone, const unichar *_buffer, /* fixup NAME attribute, the only one where case matters */ - if ([key length] == 4) { + if (_uppercaseName && [key length] == 4) { if ([@"name" caseInsensitiveCompare:key] == NSOrderedSame) { [key release]; key = @"NAME"; @@ -720,7 +725,8 @@ static WOElement *_parseWOElement(NSZone *_zone, const unichar *_buffer, // skip '