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-e597b4017df7remotes/options-overhaul
parent
d234219a4f
commit
f7bf5a511e
|
@ -3503,7 +3503,7 @@ def view_query(request):
|
||||||
if dir:
|
if dir:
|
||||||
for subdir in string.split(dir, ','):
|
for subdir in string.split(dir, ','):
|
||||||
path = (_path_join(repos_dir + request.path_parts
|
path = (_path_join(repos_dir + request.path_parts
|
||||||
+ [ string.strip(subdir) ]))
|
+ _path_parts(string.strip(subdir))))
|
||||||
query.SetDirectory(path, 'exact')
|
query.SetDirectory(path, 'exact')
|
||||||
query.SetDirectory('%s/%%' % cvsdb.EscapeLike(path), 'like')
|
query.SetDirectory('%s/%%' % cvsdb.EscapeLike(path), 'like')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue