From dfd3b408655634c9b1cdd775b44e44dfe9ed1c61 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 16 Sep 2017 19:57:00 +0200 Subject: [PATCH] Fix #325 --- cps/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/helper.py b/cps/helper.py index f7bda696..0b2e50ef 100755 --- a/cps/helper.py +++ b/cps/helper.py @@ -266,7 +266,7 @@ def get_valid_filename(value, replace_whitespace=True): """ if value[-1:] == u'.': value = value[:-1]+u'_' - value = value.replace("/", "_").replace(":", "_") + value = value.replace("/", "_").replace(":", "_").strip('\0') if use_unidecode: value=(unidecode.unidecode(value)).strip() else: