diff --git a/codepot/src/codepot/controllers/code.php b/codepot/src/codepot/controllers/code.php index 7e30d50f..1e88a700 100644 --- a/codepot/src/codepot/controllers/code.php +++ b/codepot/src/codepot/controllers/code.php @@ -99,7 +99,6 @@ class Code extends Controller $file['head_tag'] = $this->subversion->getRevProp ($projectid, $file['head_rev'], CODEPOT_SVN_TAG_PROPERTY); if ($file['head_tag'] === FALSE) $file['head_tag'] = ''; - $data['project'] = $project; $data['headpath'] = $path; $data['file'] = $file; @@ -1071,7 +1070,6 @@ class Code extends Controller } else $h['tag'] = ''; - foreach ($h['paths'] as &$chg) { if ($chg['action'] == 'A' || $chg['action'] == 'M' || $chg['action'] == 'R') @@ -1085,7 +1083,7 @@ class Code extends Controller $props = array(); } else - { + { // get the first element in the associative array. foreach ($props as &$p) break; $props = $p; @@ -1101,7 +1099,7 @@ class Code extends Controller $prev_props = array(); } else - { + { // get the first element in the associative array. foreach ($prev_props as &$p) break; $prev_props = $p; diff --git a/codepot/src/codepot/models/subversionmodel.php b/codepot/src/codepot/models/subversionmodel.php index 30fc2a15..55bfe5d1 100644 --- a/codepot/src/codepot/models/subversionmodel.php +++ b/codepot/src/codepot/models/subversionmodel.php @@ -27,6 +27,12 @@ class SubversionModel extends Model $canonical = $collapsed; } $canonical = preg_replace('|^/\.\./|','/',$canonical); + + if ($canonical != '/' && substr($canonical, -1) == '/') + { + // if the last character is / and it's not the only character, remove it + $canonical = substr ($canonical, 0, -1); + } return $canonical; } diff --git a/codepot/src/codepot/views/code_blame.php b/codepot/src/codepot/views/code_blame.php index 67832f51..46115a32 100644 --- a/codepot/src/codepot/views/code_blame.php +++ b/codepot/src/codepot/views/code_blame.php @@ -1,4 +1,6 @@ - + + +
@@ -46,7 +48,7 @@ else