replace :/ in filename

This commit is contained in:
j 2009-08-28 11:46:43 +02:00
parent cefcc94b84
commit b1ce39b51b
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class Text(models.Model):
elif author.endswith("."):
author = author[:-1] + "_"
title = self.title
title = re.sub('[:/]', '_', title)
if self.version:
title += ".%s" % self.version
extension = os.path.splitext(self.file.path)[1].lower()