diff --git a/CONTRIBUTORS b/CONTRIBUTORS index dca1a11c3..237ebbc48 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -187,7 +187,8 @@ Christian Donat Asuka Minato Dillon Baldwin Voczi -Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com> +Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com> +Themis Demetriades ******************** The text of the 3 clause BSD license follows: diff --git a/qt/aqt/import_export/import_dialog.py b/qt/aqt/import_export/import_dialog.py index 52aaa5683..1a5118503 100644 --- a/qt/aqt/import_export/import_dialog.py +++ b/qt/aqt/import_export/import_dialog.py @@ -5,6 +5,7 @@ from __future__ import annotations import json from dataclasses import dataclass +from urllib.parse import quote import aqt import aqt.deckconf @@ -65,7 +66,7 @@ class ImportDialog(QDialog): self.web = AnkiWebView(kind=self.args.kind) self.web.setVisible(False) - self.web.load_sveltekit_page(f"{self.args.ts_page}/{self.args.path}") + self.web.load_sveltekit_page(f"{self.args.ts_page}/{quote(self.args.path)}") layout = QVBoxLayout() layout.setContentsMargins(0, 0, 0, 0) layout.addWidget(self.web)