remove null strings from file metadata
This commit is contained in:
parent
1e082c3d1b
commit
8ab68826b5
2 changed files with 6 additions and 0 deletions
|
|
@ -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 = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue