Don't require trailing slash for projectroot
[gitphp.git] / include / git / ProjectListFile.class.php
blob:a/include/git/ProjectListFile.class.php -> blob:b/include/git/ProjectListFile.class.php
--- a/include/git/ProjectListFile.class.php
+++ b/include/git/ProjectListFile.class.php
@@ -58,6 +58,8 @@
 		}
 
 		$projectRoot = GitPHP_Config::GetInstance()->GetValue('projectroot');
+		if (substr($projectRoot, -1) != '/')
+			$projectRoot .= '/';
 
 		while (!feof($fp) && ($line = fgets($fp))) {
 			if (preg_match('/^([^\s]+)(\s.+)?$/', $line, $regs)) {

comments