diff --git a/src/libprs500/__init__.py b/src/libprs500/__init__.py index f2178e2ac5..4cb939487f 100644 --- a/src/libprs500/__init__.py +++ b/src/libprs500/__init__.py @@ -171,7 +171,7 @@ def get_font_families(): def sanitize_file_name(name): ''' Remove characters that are illegal in filenames from name. - Also remove path separators. ALl illegal characters are replaced by + Also remove path separators. All illegal characters are replaced by underscores. ''' - return re.sub(r'\s', ' ', re.sub(r'[\|\~\:\?\\\/]|^-', '_', name.strip())) \ No newline at end of file + return re.sub(r'\s', ' ', re.sub(r'["\'\|\~\:\?\\\/]|^-', '_', name.strip())) \ No newline at end of file