* Fix bug #26981.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user