* change for zh-cn svn.

This commit is contained in:
wangyidong
2020-03-24 08:23:04 +08:00
parent d12c6d75c6
commit a9558f90d2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class Subversion
public function __construct($client, $root, $account, $password, $encoding = 'UTF-8')
{
putenv('LC_CTYPE=en_US.UTF-8');
$this->root = rtrim($root, DIRECTORY_SEPARATOR);
$this->root = str_replace(array('%3A', '%2F'), array(':', '/'), urlencode(rtrim($root, '/')));
$this->account = $account;
$this->password = $password;
$this->encoding = $encoding;
+1 -1
View File
@@ -920,7 +920,7 @@ class repoModel extends model
if($scm == 'Subversion')
{
$path = '"' . $path . '"';
$path = '"' . str_replace(array('%3A', '%2F'), array(':', '/'), urlencode($path)) . '"';
if(stripos($path, 'https://') === 1 or stripos($path, 'svn://') === 1)
{
$ssh = true;