If the unknown element is empty, there won't be a matching END_ELEMENT. There's nothi...
authorPlatonides <platonides@users.mediawiki.org>
Fri, 4 Mar 2011 22:52:20 +0000 (22:52 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Fri, 4 Mar 2011 22:52:20 +0000 (22:52 +0000)
includes/media/SVGMetadataExtractor.php

index 7253a06..967d671 100644 (file)
@@ -161,10 +161,13 @@ class SVGReader {
         * @param String $name of the element that we are reading from
         */
        private function animateFilter( $name ) {
-               $this->debug ( "animate filter" );
+               $this->debug ( "animate filter for tag $name" );
                if( $this->reader->nodeType != XmlReader::ELEMENT ) {
                        return;
                }
+               if ( $this->reader->isEmptyElement ) {
+                       return;
+               }
                $exitDepth =  $this->reader->depth;
                $keepReading = $this->reader->read();
                while( $keepReading ) {