mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
refactor: general code base refactor (#2950)
* refactor * fix: bug in previous refactor * chore: exclude phpcompat sniff due to bug in phpcompat * fix: do not leak absolute paths * refactor/fix: batch extensions checking, fix DOS issue
This commit is contained in:
parent
b042412416
commit
2bbce8ebef
45 changed files with 679 additions and 827 deletions
|
@ -72,7 +72,7 @@ class WordPressBridge extends FeedExpander
|
|||
} else {
|
||||
$article_image = $article_image->getAttribute('data-lazy-src');
|
||||
}
|
||||
$mime_type = getMimeType($article_image);
|
||||
$mime_type = parse_mime_type($article_image);
|
||||
if (strpos($mime_type, 'image') === false) {
|
||||
$article_image .= '#.image'; // force image
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue