no newliens in path
This commit is contained in:
parent
d5ba41ac1e
commit
7ec42cab8d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue