File inc/user/repo-page.php changed (mode: 100644) (index 938436e..ea5ea36) |
... |
... |
if (strcmp($_subop, "history") == 0) { |
441 |
441 |
} else if (strcmp($type, "tree") == 0) { |
} else if (strcmp($type, "tree") == 0) { |
442 |
442 |
// find treeish of dir |
// find treeish of dir |
443 |
443 |
$_path = implode("/", $paras); |
$_path = implode("/", $paras); |
444 |
|
$rg['path'] = "/" . rawurlencode($_path); |
|
|
444 |
|
$rg['path'] = "/" . implode("/", array_map('rawurlencode', $paras)); |
445 |
445 |
$_tree = rg_git_ls_tree($rg['repo_path'], $ref, $_path); |
$_tree = rg_git_ls_tree($rg['repo_path'], $ref, $_path); |
446 |
446 |
if ($_tree === FALSE) { |
if ($_tree === FALSE) { |
447 |
447 |
$_repo_body .= rg_warning('Error: ' . rg_git_error()); |
$_repo_body .= rg_warning('Error: ' . rg_git_error()); |