Merge pull request #4515 from jmchilton/another_merge_issue

Fix subdirectory listing for extra files
This commit is contained in:
Dannon Baker
2017-08-30 09:29:18 -04:00
committed by GitHub
+1 -1
View File
@@ -389,7 +389,7 @@ class Data(object):
tmp_fh.write('<tr bgcolor="%s"><td>%s</td></tr>\n' % (bgcolor, escape(fname)))
tmp_fh.write('</table></body></html>\n')
tmp_fh.close()
return self._yield_user_file_content(trans, data, file_path)
return self._yield_user_file_content(trans, data, tmp_file_name)
mime = mimetypes.guess_type(file_path)[0]
if not mime:
try: