validate only load directories from /data/ directories

This commit is contained in:
mappu 2015-09-06 11:59:08 +12:00
parent 8ea9ca2b2f
commit 931b6e0208

View File

@ -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)) {