1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-30 21:30:14 +02:00

whitelist: check with/without ext

This commit is contained in:
Mitsukarenai
2014-05-25 21:10:16 +02:00
parent 169e2d7762
commit 99b3168452

View File

@@ -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;