From 34adf23dd1dd94d5e6a12a694bca02c78b7a38e6 Mon Sep 17 00:00:00 2001 From: Peter Mosmans Date: Thu, 10 Nov 2016 20:46:32 +1000 Subject: [PATCH] Filter another illegal filename character --- chatops/python/gitlab-to-pentext.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chatops/python/gitlab-to-pentext.py b/chatops/python/gitlab-to-pentext.py index 2e31eca..9fd6e14 100644 --- a/chatops/python/gitlab-to-pentext.py +++ b/chatops/python/gitlab-to-pentext.py @@ -146,7 +146,8 @@ def list_issues(gitserver, options): Lists all issues for options['issues'] """ try: - for issue in gitserver.project_issues.list(project_id=options['issues'], per_page=99): + for issue in gitserver.project_issues.list(project_id=options['issues'], + per_page=99): if issue.state == 'closed' and not options['closed']: continue if 'finding' in issue.labels: @@ -251,7 +252,7 @@ def valid_filename(filename): """ result = '' for char in filename.strip(): - if char in [':', '/', '.', '\\', ' ', '[', ']', '(', ')', '\'']: + if char in ['*', ':', '/', '.', '\\', ' ', '[', ']', '(', ')', '\'']: if len(char) and not result.endswith('-'): result += '-' else: