validate only load directories from /data/ directories
This commit is contained in:
parent
8ea9ca2b2f
commit
931b6e0208
@ -359,6 +359,7 @@ function listprojects() {
|
|||||||
$projects = array();
|
$projects = array();
|
||||||
foreach($ls as $dirname) {
|
foreach($ls as $dirname) {
|
||||||
if ($dirname[0] == '.') continue;
|
if ($dirname[0] == '.') continue;
|
||||||
|
if (! is_dir(BASEDIR.'data/'.$dirname)) continue;
|
||||||
$matches = array();
|
$matches = array();
|
||||||
|
|
||||||
if (preg_match('~(?:\d+-)?(.+)~', $dirname, $matches)) {
|
if (preg_match('~(?:\d+-)?(.+)~', $dirname, $matches)) {
|
||||||
|
Reference in New Issue
Block a user