fix improperly escaped urls on query page, bug #529888 reported

by Franz H�pfinger.

* lib/query.py
  (build_commit)
    add call to urllib.quote


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@765 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
rey4 2003-10-27 17:47:30 +00:00
parent 055799e9f9
commit 7994db2d37
1 changed files with 3 additions and 2 deletions

View File

@ -42,6 +42,7 @@ import cvsdb
import viewcvs
import ezt
import debug
import urllib
class FormData:
def __init__(self, form):
@ -310,8 +311,8 @@ def build_commit(server, desc, files, cvsroots, viewcvs_link):
if cvsroot_name:
flink = '<a href="%s/%s?root=%s">%s</a>' % (
viewcvs_link, file, cvsroot_name,
file_full_path)
viewcvs_link, urllib.quote(file),
cvsroot_name, file_full_path)
else:
flink = file_full_path