Get the correct uri_path for a diffusion request.

Summary: there is a bug in getting the uri path. When the user clicks
a line number twice, the new rev number and the line number is attached
to the end of the original uri instead of substituting it.

Test Plan: clicking line number multiple times, for both git and svn.

Reviewers: epriestley

CC:

Differential Revision: 84
This commit is contained in:
jungejason
2011-03-26 00:14:04 -07:00
parent 431552c357
commit 1844a6f728
3 changed files with 10 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ class DiffusionBrowseFileController extends DiffusionController {
$file_content->getCorpus());
$data = explode("\n", rtrim($data));
$uri_path = $request->getPath();
$uri_path = $drequest->getUriPath();
$uri_rev = $drequest->getCommit();
$color = null;