Add call to remove_control_chars in remove_bad_pathchars.
This commit is contained in:
parent
59cd922a53
commit
f7bd49b2dd
1 changed files with 1 additions and 0 deletions
|
@ -299,6 +299,7 @@ def remove_path_badchars(filepath, allowed=''):
|
|||
'''
|
||||
badchars = remove_characters(constants.FILENAME_BADCHARS, allowed)
|
||||
filepath = remove_characters(filepath, badchars)
|
||||
filepath = remove_control_characters(filepath)
|
||||
|
||||
filepath = filepath.replace('/', os.sep)
|
||||
filepath = filepath.replace('\\', os.sep)
|
||||
|
|
Loading…
Reference in a new issue