mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-19 02:20:09 +01:00
CS
This commit is contained in:
parent
fcad69a427
commit
9bf7752f73
@ -54,7 +54,7 @@ class DownloadImages
|
||||
$crawler = new Crawler($html);
|
||||
$result = $crawler
|
||||
->filterXpath('//img')
|
||||
->extract(array('src'));
|
||||
->extract(['src']);
|
||||
|
||||
$relativePath = $this->getRelativePath($entryId);
|
||||
|
||||
@ -66,8 +66,7 @@ class DownloadImages
|
||||
continue;
|
||||
}
|
||||
|
||||
// if image contains "&"" and we can't find it in the html
|
||||
// it might be because it's encoded as &
|
||||
// if image contains "&" and we can't find it in the html it might be because it's encoded as &
|
||||
if (false !== stripos($image, '&') && false === stripos($html, $image)) {
|
||||
$image = str_replace('&', '&', $image);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user