mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-24 08:14:37 +00:00
Merge "Cast width, height, page to int as paranoia measure"
This commit is contained in:
commit
b3a126f55e
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue