don't allow & in filenames as qt tries to escape them in a string

This commit is contained in:
Damien Elmes 2011-02-02 18:44:49 +09:00
parent 80bb59024c
commit 9bf850c701

View file

@ -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):