From: edward Date: Wed, 5 Oct 2016 05:57:49 +0000 (+0800) Subject: Images.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=864c17bc6a3d9cee2223800e621fc23363d3cbcc Images.php --- diff --git a/Images.php b/Images.php index 929119e5..13ba3977 100644 --- a/Images.php +++ b/Images.php @@ -338,9 +338,8 @@ class Pman_Core_Images extends Pman $baseURL = $ff->Pman_Images['public_baseURL']; preg_match_all('/]+>/i',$html, $result); - + //print_r($result); $matches = array_unique($result[0]); - foreach($matches as $img) { $imatch = array(); preg_match_all('/(width|height|src)="([^"]*)"/i',$img, $imatch); @@ -356,7 +355,6 @@ class Pman_Core_Images extends Pman if (empty($attr['src'])) { continue; } - if (0 !== strpos($attr['src'], $baseURL)) { // it starts with our 'new' baseURL? $html = self::replaceImgUrl($html, $baseURL, $img, $attr, 'src' );