forked from blallo/rss-bridge
[whitelist] trim content for wildcard (contrib: @Piokaz)
This commit is contained in:
parent
eb419e2595
commit
5212b91cca
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue