mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
don't allow & in filenames as qt tries to escape them in a string
This commit is contained in:
parent
80bb59024c
commit
9bf850c701
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ This does not modify the media table."""
|
|||
|
||||
def uniquePath(dir, base):
|
||||
# remove any dangerous characters
|
||||
base = re.sub(r"[][<>:/\\]", "", base)
|
||||
base = re.sub(r"[][<>:/\\&]", "", base)
|
||||
# find a unique name
|
||||
(root, ext) = os.path.splitext(base)
|
||||
def repl(match):
|
||||
|
|
Loading…
Reference in a new issue