diff options
author | Mario <mario@mariovavti.com> | 2018-11-02 10:20:18 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-11-02 10:20:18 +0100 |
commit | 24ae6c91ead39501c69838738db1b28eff222ea7 (patch) | |
tree | 0b04ca34237bf2f526bf67bc45ae2b204faf28da /include/network.php | |
parent | 3dab0d365d9fbc16eed7261ed3f68cf7f7f235c4 (diff) | |
parent | c6551336c8f4c5c8fe93d8e88be185cb7c8f764b (diff) | |
download | volse-hubzilla-24ae6c91ead39501c69838738db1b28eff222ea7.tar.gz volse-hubzilla-24ae6c91ead39501c69838738db1b28eff222ea7.tar.bz2 volse-hubzilla-24ae6c91ead39501c69838738db1b28eff222ea7.zip |
Merge branch 'patch-21' into 'dev'
Fix wrong image resize for some external images
See merge request hubzilla/core!1362
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |