mirror of
https://github.com/ankitects/anki.git
synced 2025-11-15 09:07:11 -05: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):
|
def uniquePath(dir, base):
|
||||||
# remove any dangerous characters
|
# remove any dangerous characters
|
||||||
base = re.sub(r"[][<>:/\\]", "", base)
|
base = re.sub(r"[][<>:/\\&]", "", base)
|
||||||
# find a unique name
|
# find a unique name
|
||||||
(root, ext) = os.path.splitext(base)
|
(root, ext) = os.path.splitext(base)
|
||||||
def repl(match):
|
def repl(match):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue