From f6f2eb6fd62c1a740a6acefa4e3e7eb4a142d057 Mon Sep 17 00:00:00 2001 From: shuaikangzhou <863909694@qq.com> Date: Sat, 6 Jan 2024 13:33:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E8=BD=AC=E4=B9=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ui/contact/export_dialog.py | 2 +- app/util/compress_content.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/ui/contact/export_dialog.py b/app/ui/contact/export_dialog.py index 81bd3c6..bc1f957 100644 --- a/app/ui/contact/export_dialog.py +++ b/app/ui/contact/export_dialog.py @@ -2,7 +2,7 @@ import time from PyQt5.QtCore import QTimer from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QDialog, QVBoxLayout, QCheckBox, QHBoxLayout, \ - QProgressBar, QLabel, QMessageBox + QProgressBar, QLabel, QMessageBox, QComboBox from app.DataBase.output_pc import Output diff --git a/app/util/compress_content.py b/app/util/compress_content.py index 628c229..c7b809b 100644 --- a/app/util/compress_content.py +++ b/app/util/compress_content.py @@ -114,11 +114,11 @@ def music_share(data: bytes): website_name = get_website_name(link_url) return { 'type': msg_type, - 'title': title, - 'artist': artist, + 'title': escape_js_and_html(title), + 'artist': escape_js_and_html(artist), 'link_url': link_url, 'audio_url': audio_url, - 'website_name': website_name, + 'website_name': escape_js_and_html(website_name), "is_error": False } except Exception as e: @@ -248,11 +248,11 @@ def file(bytes_extra, compress_content, output_path): file_path = get_file(bytes_extra, file_name, output_path) return { 'type': msg_type, - 'file_name': file_name, + 'file_name': escape_js_and_html(file_path), 'file_len': file_len, 'file_ext': file_ext, 'file_path': file_path, - 'app_name': app_name, + 'app_name': escape_js_and_html(app_name), "is_error": False } except Exception as e: