From a11a634d958c4f7b9c778af1ded3550db3975bc4 Mon Sep 17 00:00:00 2001 From: janezd Date: Fri, 7 Oct 2016 15:36:28 +0200 Subject: [PATCH] Canvas: Replace illegal file-name characters with _ when saving workflows --- Orange/canvas/application/canvasmain.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Orange/canvas/application/canvasmain.py b/Orange/canvas/application/canvasmain.py index 8f1091dca72..a01afc0600b 100644 --- a/Orange/canvas/application/canvasmain.py +++ b/Orange/canvas/application/canvasmain.py @@ -1170,6 +1170,8 @@ def save_scheme_as(self): document = self.current_document() curr_scheme = document.scheme() title = curr_scheme.title or "untitled" + for illegal in r'<>:"\/|?*\0': + title = title.replace(illegal, '_') if document.path(): start_dir = document.path()