From d3cbf38eb160b558d2f5f64000d29dc6e0849558 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 15 Aug 2016 02:59:42 +0200 Subject: [PATCH] [Bridge] Allow '*' wildcard to whitelist all bridges For this to work the whitelist.txt must only contain '*' (no \n) --- lib/Bridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bridge.php b/lib/Bridge.php index a7ffba3..c3f76ae 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -316,7 +316,7 @@ class Bridge{ return $listBridge; } static function isWhitelisted( $whitelist, $name ) { - if(in_array("$name", $whitelist) or in_array("$name.php", $whitelist)) + if(in_array("$name", $whitelist) or in_array("$name.php", $whitelist) or count($whitelist) === 1 and $whitelist[0] === '*') return TRUE; else return FALSE;