From 89db7e885a5746b82e6c0a1d3ddb987a5d709495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 22 May 2019 15:24:16 +0200 Subject: [PATCH] broaden sanitization slightly --- delojza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delojza.py b/delojza.py index 8b0366c..507dc1a 100755 --- a/delojza.py +++ b/delojza.py @@ -96,7 +96,7 @@ class DelojzaBot: def sanitize(filepath): if filepath is None: return None - return re.sub(r'[^\w.-]', '_', filepath) + return re.sub(r'[^\w.()\[\]{}#-]', '_', filepath) def tag_file(self, filepath, message, info=None): if info is None: