From d4e11ca1a0b4f5e227666ca1103f3e02eabce5d7 Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 13 Dec 2006 12:19:36 +0000 Subject: [PATCH] fixed an issue with lowercase 'webobject name' tags git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1389 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-appserver/NGObjWeb/ChangeLog | 5 +++++ sope-appserver/NGObjWeb/Templates/WOHTMLParser.m | 13 +++++++++++-- sope-appserver/NGObjWeb/Version | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/sope-appserver/NGObjWeb/ChangeLog b/sope-appserver/NGObjWeb/ChangeLog index 1be65e89..b00e2c83 100644 --- a/sope-appserver/NGObjWeb/ChangeLog +++ b/sope-appserver/NGObjWeb/ChangeLog @@ -1,3 +1,8 @@ +2006-12-13 Helge Hess + + * Templates/WOHTMLParser.m: fixed a bug with lowercase NAME tags in + wrapper templates (v4.5.259) + 2006-11-23 Wolfgang Sourdeau * NGHttp: added DeltaV HTTP methods (v4.5.258) diff --git a/sope-appserver/NGObjWeb/Templates/WOHTMLParser.m b/sope-appserver/NGObjWeb/Templates/WOHTMLParser.m index 6fc89f4b..201b55c0 100644 --- a/sope-appserver/NGObjWeb/Templates/WOHTMLParser.m +++ b/sope-appserver/NGObjWeb/Templates/WOHTMLParser.m @@ -636,11 +636,20 @@ _parseTagAttributes(NSZone *_zone, const unichar *_buffer, _skipSpaces(_buffer, _idx, _len); if (*_idx >= _len) break; // EOF - // read key + /* read tag key (eg NAME) */ key = _parseStringValue(_zone, _buffer, _idx, _len, _exception, self); - if (key == nil) // ended + if (key == nil) // EOF break; + /* fixup NAME attribute, the only one where case matters */ + + if ([key length] == 4) { + if ([@"name" caseInsensitiveCompare:key] == NSOrderedSame) { + [key release]; + key = @"NAME"; + } + } + /* The following parses: space* '=' space* */ _skipSpaces(_buffer, _idx, _len); diff --git a/sope-appserver/NGObjWeb/Version b/sope-appserver/NGObjWeb/Version index e82fe951..ab4142c7 100644 --- a/sope-appserver/NGObjWeb/Version +++ b/sope-appserver/NGObjWeb/Version @@ -3,7 +3,7 @@ ifeq ($(GNUSTEP_HOST_VENDOR),apple) # linker overflow SUBMINOR_VERSION:=255 else -SUBMINOR_VERSION:=258 +SUBMINOR_VERSION:=259 endif # v4.5.234 requires libDOM v4.5.21 -- 2.39.5