Merge "actions: Avoid use of is_null() PHP function where necessary"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 11 Jan 2019 16:23:10 +0000 (16:23 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 11 Jan 2019 16:23:10 +0000 (16:23 +0000)
includes/media/SVGMetadataExtractor.php

index ca398ff..f8b0c3c 100644 (file)
@@ -74,7 +74,7 @@ class SVGReader {
 
                if ( $size > $wgSVGMetadataCutoff ) {
                        $this->debug( "SVG is $size bytes, which is bigger than $wgSVGMetadataCutoff. Truncating." );
-                       $contents = file_get_contents( $source, false, null, -1, $wgSVGMetadataCutoff );
+                       $contents = file_get_contents( $source, false, null, 0, $wgSVGMetadataCutoff );
                        if ( $contents === false ) {
                                throw new MWException( 'Error reading SVG file.' );
                        }