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