From: Michael Vogel Date: Wed, 25 Jul 2012 21:40:23 +0000 (+0200) Subject: scale_external_images: Fix: Hadn't looked for pictures in the format [img=XxY] X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6456c2484ece64dc3fa02a8984b04854aee66b38;p=friendica.git scale_external_images: Fix: Hadn't looked for pictures in the format [img=XxY] --- diff --git a/include/network.php b/include/network.php index a95dde535c..fd9999b539 100644 --- a/include/network.php +++ b/include/network.php @@ -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) {