1
0
Fork 0
forked from blallo/rss-bridge

[Bridge] Allow '*' wildcard to whitelist all bridges

For this to work the whitelist.txt must only contain '*' (no \n)
This commit is contained in:
logmanoriginal 2016-08-15 02:59:42 +02:00
parent 646ae57326
commit d3cbf38eb1

View file

@ -316,7 +316,7 @@ class Bridge{
return $listBridge;
}
static function isWhitelisted( $whitelist, $name ) {
if(in_array("$name", $whitelist) or in_array("$name.php", $whitelist))
if(in_array("$name", $whitelist) or in_array("$name.php", $whitelist) or count($whitelist) === 1 and $whitelist[0] === '*')
return TRUE;
else
return FALSE;