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;