From: znek Date: Wed, 20 Oct 2004 12:40:24 +0000 (+0000) Subject: bugfix X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0de1f33762176f6e3b060f1d447cd05bf0e7413;p=sope bugfix git-svn-id: http://svn.opengroupware.org/SOPE/trunk@284 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-ical/versitSaxDriver/ChangeLog b/sope-ical/versitSaxDriver/ChangeLog index c6204244..a2189e79 100644 --- a/sope-ical/versitSaxDriver/ChangeLog +++ b/sope-ical/versitSaxDriver/ChangeLog @@ -1,5 +1,8 @@ 2004-10-20 Marcus Mueller + * VSSaxDriver.m: fixed edge case problem introduced in v4.3.10 + (v4.3.11) + * VSSaxDriver.m: remove surrounding double quotes from attribute values if any. During parsing, check if end tags match expectations and issue warnings if they don't. Added some logic to get parsing diff --git a/sope-ical/versitSaxDriver/VSSaxDriver.m b/sope-ical/versitSaxDriver/VSSaxDriver.m index 203bd9e9..6f83e6d5 100644 --- a/sope-ical/versitSaxDriver/VSSaxDriver.m +++ b/sope-ical/versitSaxDriver/VSSaxDriver.m @@ -253,7 +253,7 @@ static VSStringFormatter *stringFormatter = nil; attrName = [[_attr substringToIndex:r.location] uppercaseString]; left = NSMaxRange(r); right = [_attr length] - 1; - if(left != right) { + if(left < right) { if(([_attr characterAtIndex:left] == '"') && ([_attr characterAtIndex:right] == '"')) { @@ -265,6 +265,9 @@ static VSStringFormatter *stringFormatter = nil; attrValue = [_attr substringFromIndex:left]; } } + else if(left == right) { + attrValue = [_attr substringFromIndex:left]; + } else { attrValue = @""; } diff --git a/sope-ical/versitSaxDriver/Version b/sope-ical/versitSaxDriver/Version index c7825e07..6f0aa782 100644 --- a/sope-ical/versitSaxDriver/Version +++ b/sope-ical/versitSaxDriver/Version @@ -1,3 +1,3 @@ # Version file -SUBMINOR_VERSION:=10 +SUBMINOR_VERSION:=11