Skip to content

Commit edc004f

Browse files
authored
Merge pull request #855 from xambroz/patch-2
oleobj.py syntax error
2 parents 4093ece + 6b4c7b8 commit edc004f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: oletools/oleobj.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ def sanitize_filename(filename, replacement='_',
534534
Might return empty string
535535
"""
536536
basepath = os.path.basename(filename).strip()
537-
sane_fname = re.sub(u'[^a-zA-Z0-9.\-_ ]', replacement, basepath)
537+
sane_fname = re.sub(u'[^a-zA-Z0-9._ -]', replacement, basepath)
538538
sane_fname = str(sane_fname) # py3: does nothing; py2: unicode --> str
539539

540540
while ".." in sane_fname:

0 commit comments

Comments
 (0)