* Fix bug #38360.
This commit is contained in:
@@ -377,6 +377,7 @@ class giteaModel extends model
|
||||
$gitea = $this->getByID($giteaID);
|
||||
$oauth = "oauth2:{$gitea->token}@";
|
||||
$project->tokenCloneUrl = preg_replace('/(http(s)?:\/\/)/', "\$1$oauth", $project->html_url);
|
||||
$project->tokenCloneUrl = str_replace(array('https://', 'http://'), strstr($url, ':', true) . '://', $project->tokenCloneUrl);
|
||||
}
|
||||
|
||||
return $project;
|
||||
|
||||
@@ -454,7 +454,7 @@ class system extends control
|
||||
{
|
||||
session_write_close();
|
||||
$this->system->saveDomainSettings();
|
||||
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::$errors));
|
||||
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError(true)));
|
||||
|
||||
return $this->send(array('result' => 'success', 'message' => $this->lang->system->notices->updateDomainSuccess, 'locate' => $this->inlink('domainView')));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user