* Finish task#8000.

This commit is contained in:
qiyu-xie
2020-09-24 10:24:02 +08:00
parent c43960d7c3
commit 7c1dcc5c51
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -14,8 +14,9 @@ class scm
{
$className = $repo->SCM;
if($className == 'Git') $className = 'GitRepo';
$client = strpos($repo->client, ' ') ? str_replace(' ', '" "', $repo->client) : $repo->client;
if(!class_exists($className)) require(strtolower($className) . '.class.php');
$this->engine = new $className($repo->client, $repo->path, $repo->account, $repo->password, $repo->encoding);
$this->engine = new $className($client, $repo->path, $repo->account, $repo->password, $repo->encoding);
}
/**
+1 -1
View File
@@ -931,7 +931,7 @@ class repoModel extends model
{
if(empty($_POST)) return false;
$scm = $this->post->SCM;
$client = $this->post->client;
$client = str_replace(' ', '" "', $this->post->client);
$account = $this->post->account;
$password = $this->post->password;
$encoding = strtoupper($this->post->encoding);