mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Don't read invalid data from title in PDB header.
This commit is contained in:
parent
a6886b0acd
commit
6e600b0e56
@ -30,7 +30,7 @@ class PdbHeaderReader(object):
|
||||
|
||||
def name(self):
|
||||
self.stream.seek(0)
|
||||
return self.stream.read(32).replace('\x00', '')
|
||||
return re.sub('[^-A-Za-z0-9 ]+', '_', self.stream.read(32).replace('\x00', ''))
|
||||
|
||||
def full_section_info(self, number):
|
||||
if number not in range(0, self.num_sections):
|
||||
|
Loading…
x
Reference in New Issue
Block a user