mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 07:07:39 +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:
@@ -27,7 +27,8 @@ final class BridgeFactory
|
||||
} else {
|
||||
$contents = '';
|
||||
}
|
||||
if ($contents === '*') { // Whitelist all bridges
|
||||
if ($contents === '*') {
|
||||
// Whitelist all bridges
|
||||
$this->whitelist = $this->getBridgeClassNames();
|
||||
} else {
|
||||
foreach (explode("\n", $contents) as $bridgeName) {
|
||||
@@ -97,7 +98,6 @@ final class BridgeFactory
|
||||
return $this->getBridgeClassNames()[$index];
|
||||
}
|
||||
|
||||
Debug::log('Invalid bridge name specified: "' . $name . '"!');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user