mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 08:37:30 +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:
@@ -71,7 +71,9 @@ class RedditBridge extends BridgeAbstract
|
||||
{
|
||||
$parsed_url = parse_url($url);
|
||||
|
||||
if ($parsed_url['host'] != 'www.reddit.com' && $parsed_url['host'] != 'old.reddit.com') {
|
||||
$host = $parsed_url['host'] ?? null;
|
||||
|
||||
if ($host != 'www.reddit.com' && $host != 'old.reddit.com') {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user