Merge pull request #278 from STDquantum/master

文件名称显示成文件路径了,后面什么都打不开。
This commit is contained in:
SiYuan 2024-01-06 15:29:17 +08:00 committed by GitHub
commit 30d5273000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,7 @@ def file(bytes_extra, compress_content, output_path):
file_path = get_file(bytes_extra, file_name, output_path)
return {
'type': msg_type,
'file_name': escape_js_and_html(file_path),
'file_name': escape_js_and_html(file_name),
'file_len': file_len,
'file_ext': file_ext,
'file_path': file_path,