mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 17:45:40 +03:00
whitelist: check with/without ext
This commit is contained in:
parent
169e2d7762
commit
99b3168452
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ else {
|
|||
|
||||
// whitelist control function
|
||||
function BridgeWhitelist( $whitelist, $name ) {
|
||||
if(in_array((string)$name, $whitelist))
|
||||
if(in_array("$name", $whitelist) or in_array("$name.php", $whitelist))
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue