Merge "Cast width, height, page to int as paranoia measure"

This commit is contained in:
jenkins-bot 2016-06-21 20:01:21 +00:00 committed by Gerrit Code Review
commit b3a126f55e

View file

@ -160,9 +160,9 @@ class PdfHandler extends ImageHandler {
return new TransformParameterError( $params );
}
$width = $params['width'];
$height = $params['height'];
$page = $params['page'];
$width = (int)$params['width'];
$height = (int)$params['height'];
$page = (int)$params['page'];
if ( $page > $this->pageCount( $image ) ) {
return $this->doThumbError( $width, $height, 'pdf_page_error' );