This commit is contained in:
caoyanyi
2022-08-29 15:27:35 +08:00
parent 01de281380
commit bf204a96d0
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -1786,8 +1786,9 @@ class repo extends control
*/
public function ajaxGetFileTree($repoID, $branch = '')
{
$repo = $this->repo->getRepoByID($repoID);
$files = $this->repo->getFileTree($repo, $branch);
$branch = base64_decode($branch);
$repo = $this->repo->getRepoByID($repoID);
$files = $this->repo->getFileTree($repo, $branch);
return print($files);
}
+1 -1
View File
@@ -87,7 +87,7 @@ $(function()
*/
function refreshFiles(branchOrTag)
{
var link = createLink('repo', 'ajaxGetFileTree', 'repoID=' + repoID + '&branch=' + branchOrTag);
var link = createLink('repo', 'ajaxGetFileTree', 'repoID=' + repoID + '&branch=' + Base64.encode(branchOrTag));
$.get(link, function(data)
{
$('#modules').remove();