From ef06f649694817e33f9b575555658013653865d5 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 7 Mar 2019 08:08:47 +0100 Subject: [PATCH] glob only dirs --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index e6d0f75..75a80e5 100644 --- a/public/index.php +++ b/public/index.php @@ -9,7 +9,7 @@ use http\Env\Request; use http\Env\Response; define("ROOT", dirname(__DIR__)); -define("REFS", getenv("REFPATH") ?: implode(PATH_SEPARATOR, glob(ROOT."/refs/*"))); +define("REFS", getenv("REFPATH") ?: implode(PATH_SEPARATOR, glob(ROOT."/refs/*", GLOB_ONLYDIR))); ini_set("open_basedir", ROOT.PATH_SEPARATOR.REFS); -- 2.30.2