Add call to remove_control_chars in remove_bad_pathchars.

This commit is contained in:
voussoir 2018-02-17 15:07:12 -08:00
parent 59cd922a53
commit f7bd49b2dd

View file

@ -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)