diff --git a/index.php b/index.php index 7537759a..e8b10324 100644 --- a/index.php +++ b/index.php @@ -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;