diff --git a/includes/media/SVGMetadataExtractor.php b/includes/media/SVGMetadataExtractor.php index ca398ff14fb..f8b0c3c9c07 100644 --- a/includes/media/SVGMetadataExtractor.php +++ b/includes/media/SVGMetadataExtractor.php @@ -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.' ); }