Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 41b9bc7

Browse files
committed
Fix issues in git-log when spaces in folder path.
1 parent 6dddee5 commit 41b9bc7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/plugins/meta.git/class.GitManager.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ public function applyActions($actionName, $httpVars, $fileVars)
6565
case "git_history":
6666
$file = AJXP_Utils::decodeSecureMagic($httpVars["file"]);
6767
$file = ltrim($file, "/");
68-
68+
$dir = dirname($file);
69+
if(!empty($dir) && $dir != "/"){
70+
$git = new VersionControl_Git($this->repoBase."/".$dir);
71+
$file = basename($file);
72+
}
6973
$res = $this->gitHistory($git, $file);
7074
AJXP_XMLWriter::header();
7175
$ic = AJXP_Utils::mimetype($file, "image", false);

0 commit comments

Comments
 (0)