mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
html-escape deck name in overview
This commit is contained in:
parent
615bbf95a1
commit
6040ffd047
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
from __future__ import annotations
|
||||
|
||||
import html
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from typing import Any
|
||||
|
|
@ -191,7 +192,7 @@ class Overview:
|
|||
self._show_finished_screen()
|
||||
return
|
||||
content = OverviewContent(
|
||||
deck=deck["name"],
|
||||
deck=html.escape(deck["name"]),
|
||||
shareLink=shareLink,
|
||||
desc=self._desc(deck),
|
||||
table=self._table(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue