X-Git-Url: http://git.pk910.de/?p=phpgitweb.git;a=blobdiff_plain;f=htdocs%2Flib%2FProjectLoader.class.php;fp=htdocs%2Flib%2FProjectLoader.class.php;h=20ee218aa6a91a6aecdb301fa59c5bcae76afabc;hp=a5ebd74f8b40da65015076ef08b3094a195a5c28;hb=394a07ff3e283f94c7ead44e8bd02d44c223314b;hpb=ce9f1b8b05ff571f6922460cf91b45aa5a119d94 diff --git a/htdocs/lib/ProjectLoader.class.php b/htdocs/lib/ProjectLoader.class.php index a5ebd74..20ee218 100644 --- a/htdocs/lib/ProjectLoader.class.php +++ b/htdocs/lib/ProjectLoader.class.php @@ -47,6 +47,8 @@ class ProjectLoader { $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"))