no newliens in path

This commit is contained in:
j 2017-06-12 10:38:08 +02:00
parent d5ba41ac1e
commit 7ec42cab8d
1 changed files with 1 additions and 0 deletions

View File

@ -774,6 +774,7 @@ class File(db.Model):
first = unicodedata.normalize('NFD', author[0].upper())[0].upper()
new_path = os.path.join(first, author, filename)
new_path = new_path.replace('\x00', '')
new_path = new_path.replace('\n', ' ').replace(' ', ' ')
new_path = ox.decode_html(new_path)
if self.path == new_path:
return