Commit 956f0167 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added trailing /

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13677 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 90fbc904
...@@ -55,7 +55,7 @@ class DirectoryFileHandler(FileHandler): ...@@ -55,7 +55,7 @@ class DirectoryFileHandler(FileHandler):
file_list = dircache.listdir(localfile) file_list = dircache.listdir(localfile)
s = StringIO() s = StringIO()
for f in file_list: for f in file_list:
s.write('<p><a href="%s">%s</a></p>\n' % (urllib.quote(f), f)) s.write('<p><a href="%s/">%s</a></p>\n' % (urllib.quote(f), f))
s.seek(0) s.seek(0)
headers = mimetools.Message(StringIO( headers = mimetools.Message(StringIO(
'Content-type: %s\nContent-length: %d\nLast-modified: %s\n' % 'Content-type: %s\nContent-length: %d\nLast-modified: %s\n' %
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment