From c6551336c8f4c5c8fe93d8e88be185cb7c8f764b Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Thu, 1 Nov 2018 21:50:36 +0100 Subject: Fix wrong image resize for some external images --- include/network.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/network.php') diff --git a/include/network.php b/include/network.php index 4c9813768..f976dcc35 100644 --- a/include/network.php +++ b/include/network.php @@ -711,9 +711,9 @@ function scale_external_images($s, $include_link = true, $scale_replace = false) foreach($matches as $mtch) { logger('data: ' . $mtch[2] . ' ' . $mtch[3]); - if(substr($mtch[1],0,1) == '=') { + if(substr($mtch[2],0,1) == '=') { $owidth = intval(substr($mtch[2],1)); - if(intval($owidth) > 0 && intval($owidth) < 1024) + if($owidth > 0 && $owidth < 1024) continue; } -- cgit v1.2.3