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: