forked from wallabag/wallabag
CS
This commit is contained in:
@ -54,7 +54,7 @@ class DownloadImages
|
|||||||
$crawler = new Crawler($html);
|
$crawler = new Crawler($html);
|
||||||
$result = $crawler
|
$result = $crawler
|
||||||
->filterXpath('//img')
|
->filterXpath('//img')
|
||||||
->extract(array('src'));
|
->extract(['src']);
|
||||||
|
|
||||||
$relativePath = $this->getRelativePath($entryId);
|
$relativePath = $this->getRelativePath($entryId);
|
||||||
|
|
||||||
@ -66,8 +66,7 @@ class DownloadImages
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if image contains "&"" and we can't find it in the html
|
// if image contains "&" and we can't find it in the html it might be because it's encoded as &
|
||||||
// it might be because it's encoded as &
|
|
||||||
if (false !== stripos($image, '&') && false === stripos($html, $image)) {
|
if (false !== stripos($image, '&') && false === stripos($html, $image)) {
|
||||||
$image = str_replace('&', '&', $image);
|
$image = str_replace('&', '&', $image);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user