文件名称显示成文件路径了,后面什么都打不开。

This commit is contained in:
STDquantum 2024-01-06 14:09:41 +08:00
parent 0a69b7b749
commit 05fe152aa2
No known key found for this signature in database
GPG Key ID: 4F49272C35FBF52C

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,