Don't require trailing slash for temp dir
Don't require trailing slash for temp dir

--- a/config/gitphp.conf.defaults.php
+++ b/config/gitphp.conf.defaults.php
@@ -211,7 +211,6 @@
 /*
  * gittmp
  * Location for temporary files for diffs
- * (don't forget trailing slash!)
  */
 $gitphp_conf['gittmp'] = '/tmp/gitphp/';
 

--- a/include/git/FileDiff.class.php
+++ b/include/git/FileDiff.class.php
@@ -524,7 +524,7 @@
 		if (!GitPHP_Config::GetInstance()->GetValue('tmpdirprepared'))
 			GitPHP_FileDiff::PrepareTempDir();
 
-		$tmpdir = GitPHP_Config::GetInstance()->GetValue('gittmp', '/tmp/gitphp/');
+		$tmpdir = GitPHP_Util::AddSlash(GitPHP_Config::GetInstance()->GetValue('gittmp', '/tmp/gitphp/'));
 
 		$pid = 0;
 		if (function_exists('posix_getpid'))
@@ -610,7 +610,7 @@
 	{
 		GitPHP_Config::GetInstance()->SetValue('tmpdirprepared', true);
 
-		$tmpdir = GitPHP_Config::GetInstance()->GetValue('gittmp', '/tmp/gitphp/');
+		$tmpdir = GitPHP_Util::AddSlash(GitPHP_Config::GetInstance()->GetValue('gittmp', '/tmp/gitphp/'));
 
 		if (empty($tmpdir)) {
 			throw new Exception(__('No tmpdir defined'));

comments