The check for termination of a CDATA Section would miss cases with an odd number of ] at the end. Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
@@ -4125,19 +4125,16 @@ protected:
readNext();
while (']' == nextChar)
{
- char c1 = nextChar;
- if (']' == nextChar)
+ while (']' == nextChar)
- char c2 = nextChar;
if ('>' == nextChar)
return;
else
- text.append(c1).append(c2);
+ text.append(']');
}
- else
- text.append(c1);
text.append(nextChar);