From 49578dfdcc5db1e7eeb9048e892a372d71ca91fc Mon Sep 17 00:00:00 2001 From: Paul de Rosanbo Date: Sun, 11 Sep 2016 13:42:44 +0200 Subject: [PATCH] Fix the wildcard condition in the whitelist test --- lib/Bridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bridge.php b/lib/Bridge.php index 4c76640a..1407f4cc 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -96,7 +96,7 @@ EOD; || in_array($name . '.php', $whitelist) || in_array($name . 'Bridge', $whitelist) // DEPRECATED || in_array($name . 'Bridge.php', $whitelist) // DEPRECATED - || count($whitelist) === 1 and trim($whitelist[0]) === '*'){ + || (count($whitelist) === 1 and trim($whitelist[0]) === '*')){ return true; } else { return false;