From: Michael Wallner Date: Thu, 7 Mar 2019 07:08:47 +0000 (+0100) Subject: glob only dirs X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ef06f649694817e33f9b575555658013653865d5;p=mdref%2Fmdref glob only dirs --- 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);