mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Add a security note to reduce the chance of a regression
This commit is contained in:
parent
ba25b11e50
commit
d930f51a8f
1 changed files with 3 additions and 0 deletions
|
|
@ -38,6 +38,9 @@ class SoundOrVideoTag:
|
||||||
|
|
||||||
Video files also use [sound:...].
|
Video files also use [sound:...].
|
||||||
|
|
||||||
|
SECURITY: We should only ever construct this with basename(filename),
|
||||||
|
as passing arbitrary paths to mpv from a shared deck is a security issue.
|
||||||
|
|
||||||
Anki add-ons can supply an absolute file path to play any file on disk
|
Anki add-ons can supply an absolute file path to play any file on disk
|
||||||
using the built-in media player.
|
using the built-in media player.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue