]> git.mxchange.org Git - friendica.git/commitdiff
scale_external_images: Fix: Hadn't looked for pictures in the format [img=XxY]
authorMichael Vogel <icarus@dabo.de>
Wed, 25 Jul 2012 21:40:23 +0000 (23:40 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 25 Jul 2012 21:40:23 +0000 (23:40 +0200)
include/network.php

index a95dde535c9fa967156b28806f9c508b9ed1b064..fd9999b53995e1e60579059c19a688129deccb19 100644 (file)
@@ -802,7 +802,7 @@ function scale_external_images($s, $include_link = true, $scale_replace = false)
        $s = htmlspecialchars_decode($s);
 
        $matches = null;
-       $c = preg_match_all('/\[img\](.*?)\[\/img\]/ism',$s,$matches,PREG_SET_ORDER);
+       $c = preg_match_all('/\[img.*?\](.*?)\[\/img\]/ism',$s,$matches,PREG_SET_ORDER);
        if($c) {
                require_once('include/Photo.php');
                foreach($matches as $mtch) {