http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94277

Revision: 94277
Author:   mah
Date:     2011-08-11 19:51:51 +0000 (Thu, 11 Aug 2011)
Log Message:
-----------
Fix Bug #30322 ?\226?\128?\156SVG metadata is read incorrectly?\226?\128?\157 
by applying supplied patch

Modified Paths:
--------------
    trunk/phase3/includes/media/SVGMetadataExtractor.php

Modified: trunk/phase3/includes/media/SVGMetadataExtractor.php
===================================================================
--- trunk/phase3/includes/media/SVGMetadataExtractor.php        2011-08-11 
19:39:22 UTC (rev 94276)
+++ trunk/phase3/includes/media/SVGMetadataExtractor.php        2011-08-11 
19:51:51 UTC (rev 94277)
@@ -55,7 +55,7 @@
                $size = filesize( $source );
                if ( $size === false ) {
                        throw new MWException( "Error getting filesize of SVG." 
);
-               } 
+               }
 
                if ( $size > $wgSVGMetadataCutoff ) {
                        $this->debug( "SVG is $size bytes, which is bigger than 
$wgSVGMetadataCutoff. Truncating." );
@@ -157,7 +157,7 @@
                }
                $keepReading = $this->reader->read();
                while( $keepReading ) {
-                       if( $this->reader->localName == $name && 
$this->namespaceURI == self::NS_SVG && $this->reader->nodeType == 
XmlReader::END_ELEMENT ) {
+                       if( $this->reader->localName == $name && 
$this->reader->namespaceURI == self::NS_SVG && $this->reader->nodeType == 
XmlReader::END_ELEMENT ) {
                                break;
                        } elseif( $this->reader->nodeType == XmlReader::TEXT ){
                                $this->metadata[$metafield] = trim( 
$this->reader->value );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to