Fix #1820 (Error when saving to disk a book with 2 or more dots in the Title)

This commit is contained in:
Kovid Goyal 2009-02-11 19:57:10 -08:00
parent 2d3d71abff
commit 3dfbf94db3

View File

@ -69,7 +69,7 @@ def sanitize_file_name(name, substitute='_', as_unicode=False):
one = re.sub(r'^\.+$', '_', one)
if as_unicode:
one = one.decode(filesystem_encoding)
return one
return one.replace('..', '_')
class CommandLineError(Exception):