diff --git a/etiquette/helpers.py b/etiquette/helpers.py index 7bf278c..a49e47a 100644 --- a/etiquette/helpers.py +++ b/etiquette/helpers.py @@ -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)