mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make the sanitization more general
This commit is contained in:
parent
44ae597f14
commit
739b3662b0
@ -19,7 +19,7 @@ from calibre.utils.filenames import ascii_filename
|
|||||||
from calibre.utils.imghdr import what
|
from calibre.utils.imghdr import what
|
||||||
|
|
||||||
def sanitize_file_name(x):
|
def sanitize_file_name(x):
|
||||||
return ascii_filename(x).replace(';', '_')
|
return re.sub(r'[?&=;]', '_', ascii_filename(x))
|
||||||
|
|
||||||
class HTMLInput(InputFormatPlugin):
|
class HTMLInput(InputFormatPlugin):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user