glob only dirs
authorMichael Wallner <mike@php.net>
Thu, 7 Mar 2019 07:08:47 +0000 (08:08 +0100)
committerMichael Wallner <mike@php.net>
Thu, 7 Mar 2019 07:08:47 +0000 (08:08 +0100)
public/index.php

index e6d0f75a4ce4a9fe449d1cd92c8f81c97b9c7570..75a80e5fd40cdb6e3ac5c460a2b8c383442577a5 100644 (file)
@@ -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);