$project['name'] = $name;
$dir_seperator = (substr(GitConfig::PROJECT_ROOT, -1) == '/' ? '' : '/');
+ if(!Validation::validate_path($name))
+ return NULL;
if(is_dir(GitConfig::PROJECT_ROOT.$dir_seperator.$name))
$project['path'] = GitConfig::PROJECT_ROOT.$dir_seperator.$name;
else if(is_dir(GitConfig::PROJECT_ROOT.$dir_seperator.$name.".git"))
private function getProjectRefsRecursive(&$project, $cref) {
if ($dh = opendir($project['path'].'/'.$cref)) {
while (($file = readdir($dh)) !== false) {
- if($file == '.' || $file == '..')
+ if($file[0] == '.')
continue;
if(is_dir($project['path'].'/'.$cref.'/'.$file))
$this->getProjectRefsRecursive($project, $cref.'/'.$file);