diff options
author | 2022-08-06 22:46:28 +0200 | |
---|---|---|
committer | 2022-08-06 22:46:28 +0200 | |
commit | 2bbce8ebef8cf4f88392431aabe84a15482dc933 (patch) | |
tree | 1f5027ca69b1dfa2364bd9319e8536b86a41e928 /lib/BridgeFactory.php | |
parent | b042412416cc4ecc71c3f9c13239661a0dd588a6 (diff) | |
download | rss-bridge-2bbce8ebef8cf4f88392431aabe84a15482dc933.tar.gz rss-bridge-2bbce8ebef8cf4f88392431aabe84a15482dc933.tar.zst rss-bridge-2bbce8ebef8cf4f88392431aabe84a15482dc933.zip |
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
Diffstat (limited to 'lib/BridgeFactory.php')
-rw-r--r-- | lib/BridgeFactory.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/BridgeFactory.php b/lib/BridgeFactory.php index 34602476..e525452b 100644 --- a/lib/BridgeFactory.php +++ b/lib/BridgeFactory.php @@ -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; } } |