mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-10-24 21:16:06 +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:
@@ -22,7 +22,9 @@ class PirateCommunityBridge extends BridgeAbstract
|
||||
{
|
||||
$parsed_url = parse_url($url);
|
||||
|
||||
if ($parsed_url['host'] !== 'raymanpc.com') {
|
||||
$host = $parsed_url['host'] ?? null;
|
||||
|
||||
if ($host !== 'raymanpc.com') {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user