Finish issue #244 by normalizing the input search directory values.

* lib/viewvc.py
  (view_query): Use _path_parts to cleanup the list of query directories.

git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1550 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/options-overhaul
cmpilato 2007-03-28 03:04:18 +00:00
parent d234219a4f
commit f7bf5a511e
1 changed files with 1 additions and 1 deletions

View File

@ -3503,7 +3503,7 @@ def view_query(request):
if dir:
for subdir in string.split(dir, ','):
path = (_path_join(repos_dir + request.path_parts
+ [ string.strip(subdir) ]))
+ _path_parts(string.strip(subdir))))
query.SetDirectory(path, 'exact')
query.SetDirectory('%s/%%' % cvsdb.EscapeLike(path), 'like')
else: