1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-01-17 14:18:35 +01:00

[EconomistBridge] Fix strange image urls (#3600)

This commit is contained in:
Korytov Pavel 2023-08-08 09:58:08 +05:00 committed by GitHub
parent 3e3481bd7a
commit cf6d94dc2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ class EconomistBridge extends FeedExpander
$svelte->parent->removeChild($svelte);
}
foreach ($elem->find('img') as $strange_img) {
if (!str_contains($strange_img->src, 'https://economist.com')) {
if (!str_contains($strange_img->src, 'economist.com')) {
$strange_img->src = 'https://economist.com' . $strange_img->src;
}
}