From 99b316845299ac431494b687cc65e302a9f07624 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Sun, 25 May 2014 21:10:16 +0200 Subject: [PATCH] whitelist: check with/without ext --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 7537759..e8b1032 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;