Fix wrong image resize for some external images
This commit is contained in:
parent
3dab0d365d
commit
c6551336c8
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user