if (empty($attr['src'])) {
continue;
}
-
if (0 !== strpos($attr['src'], $baseURL)) {
- print_r($baseURL);
- echo "\n";
- print_r($attr['src']);
- exit;
// it starts with our 'new' baseURL?
$html = self::replaceImgUrl($html, $baseURL, $img, $attr, 'src' );
continue;
}
- if (false !== strpos($attr['src'], '//')) {
+ if (false !== strpos($attr['src'], '//') && false === strpos($attr['src'], $baseURL)) {
// contains an absolute path.. that is probably not us...
continue;
}
$html = self::replaceImgUrl($html, $baseURL, $img, $attr, 'src' );
-
-
}