remove null strings from file metadata

This commit is contained in:
j 2014-05-28 13:36:44 +02:00
commit 8ab68826b5
2 changed files with 6 additions and 0 deletions

View file

@ -530,6 +530,7 @@ class File(db.Model):
filename = '%s.%s' % (title, extension)
new_path = os.path.join(author[0].upper(), author, filename)
new_path = new_path.replace('\x00', '')
if self.path == new_path:
return
h = ''