diff --git a/beat/web/common/models.py b/beat/web/common/models.py index e28a453214faa311d805809562b98b886a572c4c..9b1b9044bb2373f6ddad58cb1b81c5278e46dcf9 100755 --- a/beat/web/common/models.py +++ b/beat/web/common/models.py @@ -389,7 +389,7 @@ class Versionable(Shareable): @staticmethod def sanitize_name(name): """Makes sure that the name is valid""" - return re.sub(r'[\W]', '-', name) + return re.sub(r'[^\x00-\x7f]|\W', r'-', name)