Commit 2c326964 authored by 林檎's avatar 林檎

Merge branch 'fix/slugify-filename-20170305' into travis

parents 35b9e423 9ca88840
......@@ -1275,7 +1275,7 @@ def get_download_link(book_id, format):
helper.update_download(book_id, int(current_user.id))
file_name = book.title
if len(book.authors) > 0:
file_name = book.authors[0].name + '-' + file_name
file_name = book.authors[0].name + '_' + file_name
file_name = helper.get_valid_filename(file_name)
response = make_response(
send_from_directory(os.path.join(config.config_calibre_dir, book.path), data.name + "." + format))
......
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