Skip to content

Commit

Permalink
Fix imports of decks with file paths using special URL characters (#3377
Browse files Browse the repository at this point in the history
)
  • Loading branch information
themis-d authored Aug 29, 2024
1 parent b35b69a commit 0f44796
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ Christian Donat <https://github.com/cdonat2>
Asuka Minato <https://asukaminato.eu.org>
Dillon Baldwin <https://github.com/DillBal>
Voczi <https://github.com/voczi>
Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com>
Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com>
Themis Demetriades <themis100@outlook.com>
********************

The text of the 3 clause BSD license follows:
Expand Down
3 changes: 2 additions & 1 deletion qt/aqt/import_export/import_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import json
from dataclasses import dataclass
from urllib.parse import quote

import aqt
import aqt.deckconf
Expand Down Expand Up @@ -65,7 +66,7 @@ def _setup_ui(self) -> None:

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)
Expand Down

0 comments on commit 0f44796

Please sign in to comment.