mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-09 11:15:50 +02:00
[whitelist] trim content for wildcard (contrib: @Piokaz)
This commit is contained in:
@ -316,7 +316,7 @@ class Bridge{
|
||||
return $listBridge;
|
||||
}
|
||||
static function isWhitelisted( $whitelist, $name ) {
|
||||
if(in_array("$name", $whitelist) or in_array("$name.php", $whitelist) or count($whitelist) === 1 and $whitelist[0] === '*')
|
||||
if(in_array("$name", $whitelist) or in_array("$name.php", $whitelist) or count($whitelist) === 1 and trim($whitelist[0]) === '*')
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user