From f7bd49b2ddfecf0755c535d62adb6e87cec6c7cd Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 17 Feb 2018 15:07:12 -0800 Subject: [PATCH] Add call to remove_control_chars in remove_bad_pathchars. --- etiquette/helpers.py | 1 + 1 file changed, 1 insertion(+) 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)