Fix XML-SAX bug #43174 (see http://rt.cpan.org/Public/Bug/Display.html?id=43174)
authorDario Sestito <darios@symbian.org>
Fri, 13 Nov 2009 17:48:12 +0000
changeset 765 2892c791ce6c
parent 764 d00048f1b036
child 766 adc25ece36f0
child 785 cf98fb6a1da9
Fix XML-SAX bug #43174 (see http://rt.cpan.org/Public/Bug/Display.html?id=43174)
common/tools/raptor/XML/SAX/PurePerl.pm
--- a/common/tools/raptor/XML/SAX/PurePerl.pm	Fri Nov 13 17:47:50 2009 +0000
+++ b/common/tools/raptor/XML/SAX/PurePerl.pm	Fri Nov 13 17:48:12 2009 +0000
@@ -319,6 +319,12 @@
             $self->characters({Data => $chars});
             last;
         }
+        elsif ($data =~ /(.*?)\]+$/s) {
+            my $chars = $1;
+            $reader->move_along(length($chars));
+            $self->characters({Data => $chars});
+            $data = $reader->data(3);
+        }
         else {
             $self->characters({Data => $data});
             $reader->move_along(length($data));