projects
/
mdref
/
mdref
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
30ba41f
)
glob only dirs
author
Michael Wallner
<mike@php.net>
Thu, 7 Mar 2019 07:08:47 +0000
(08:08 +0100)
committer
Michael Wallner
<mike@php.net>
Thu, 7 Mar 2019 07:08:47 +0000
(08:08 +0100)
public/index.php
patch
|
blob
|
history
diff --git
a/public/index.php
b/public/index.php
index e6d0f75a4ce4a9fe449d1cd92c8f81c97b9c7570..75a80e5fd40cdb6e3ac5c460a2b8c383442577a5 100644
(file)
--- 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);