From c2d984d4708a18a73f5f7eb9d2e37b8782414f04 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 19 Jun 2024 09:08:00 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B07552=20-=20Fix=20implicit=20float=20to?= =?UTF-8?q?=20int=20conversion=20when=20uploading=20inline=20images?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/inlineimage.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/inlineimage.class.inc.php b/core/inlineimage.class.inc.php index 50ed9994f..5a7162e09 100644 --- a/core/inlineimage.class.inc.php +++ b/core/inlineimage.class.inc.php @@ -445,8 +445,8 @@ JS $fScale = min($iMaxImageSize / $iWidth, $iMaxImageSize / $iHeight); - $iNewWidth = $iWidth * $fScale; - $iNewHeight = $iHeight * $fScale; + $iNewWidth = (int) ($iWidth * $fScale); + $iNewHeight = (int) ($iHeight * $fScale); $aDimensions['width'] = $iNewWidth; $aDimensions['height'] = $iNewHeight;